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": true, "full_module": "Hacl.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "S" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Bignum.Base", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum.ModInvLimb", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Bignum.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum", "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 bn_mont_one_st (t:limb_t) (nLen:BN.meta_len t) = n:lbignum t nLen -> mu:limb t -> r2:lbignum t nLen -> oneM:lbignum t nLen -> Stack unit (requires fun h -> live h n /\ live h r2 /\ live h oneM /\ disjoint n r2 /\ disjoint n oneM /\ disjoint r2 oneM) (ensures fun h0 _ h1 -> modifies (loc oneM) h0 h1 /\ as_seq h1 oneM == S.bn_mont_one (as_seq h0 n) mu (as_seq h0 r2))
let bn_mont_one_st (t: limb_t) (nLen: BN.meta_len t) =
false
null
false
n: lbignum t nLen -> mu: limb t -> r2: lbignum t nLen -> oneM: lbignum t nLen -> Stack unit (requires fun h -> live h n /\ live h r2 /\ live h oneM /\ disjoint n r2 /\ disjoint n oneM /\ disjoint r2 oneM) (ensures fun h0 _ h1 -> modifies (loc oneM) h0 h1 /\ as_seq h1 oneM == S.bn_mont_one (as_seq h0 n) mu (as_seq h0 r2))
{ "checked_file": "Hacl.Bignum.Montgomery.fsti.checked", "dependencies": [ "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModInvLimb.fsti.checked", "Hacl.Bignum.Definitions.fst.checked", "Hacl.Bignum.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Bignum.Montgomery.fsti" }
[ "total" ]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.Definitions.limb", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.Buffer.live", "Lib.Buffer.MUT", "Lib.Buffer.disjoint", "Lib.Buffer.modifies", "Lib.Buffer.loc", "Prims.eq2", "Lib.Sequence.lseq", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.Buffer.as_seq", "Hacl.Spec.Bignum.Montgomery.bn_mont_one" ]
[]
module Hacl.Bignum.Montgomery open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module S = Hacl.Spec.Bignum.Montgomery module BN = Hacl.Bignum include Hacl.Bignum.ModInvLimb #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let bn_check_modulus_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> Stack (limb t) (requires fun h -> live h n) (ensures fun h0 r h1 -> modifies0 h0 h1 /\ r == S.bn_check_modulus (as_seq h0 n)) inline_for_extraction noextract val bn_check_modulus: #t:limb_t -> #len:BN.meta_len t -> bn_check_modulus_st t len inline_for_extraction noextract let bn_precomp_r2_mod_n_st (t:limb_t) (len:BN.meta_len t) = nBits:size_t{v nBits / bits t < v len} -> n:lbignum t len -> res:lbignum t len -> Stack unit (requires fun h -> live h n /\ live h res /\ disjoint n res) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ as_seq h1 res == S.bn_precomp_r2_mod_n (v nBits) (as_seq h0 n)) inline_for_extraction noextract val bn_precomp_r2_mod_n: #t:limb_t -> k:BN.bn t -> bn_precomp_r2_mod_n_st t k.BN.len inline_for_extraction noextract let bn_mont_precomp_st (t:limb_t) (len:BN.meta_len t) = nBits:size_t -> n:lbignum t len -> r2:lbignum t len -> Stack (limb t) (requires fun h -> live h n /\ live h r2 /\ disjoint n r2 /\ 1 < bn_v h n /\ bn_v h n % 2 = 1 /\ pow2 (v nBits) < bn_v h n /\ v nBits / bits t < v len) (ensures fun h0 mu h1 -> modifies (loc r2) h0 h1 /\ (as_seq h1 r2, mu) == S.bn_mont_precomp (v nBits) (as_seq h0 n)) inline_for_extraction noextract val bn_mont_precomp: #t:limb_t -> len:BN.meta_len t -> precompr2:bn_precomp_r2_mod_n_st t len -> bn_mont_precomp_st t len inline_for_extraction noextract let bn_mont_reduction_st (t:limb_t) (len:size_t{0 < v len /\ v len + v len <= max_size_t}) = n:lbignum t len -> mu:limb t -> c:lbignum t (len +! len) -> res:lbignum t len -> Stack unit (requires fun h -> live h n /\ live h c /\ live h res /\ disjoint res n /\ disjoint res c /\ disjoint n c) (ensures fun h0 _ h1 -> modifies (loc res |+| loc c) h0 h1 /\ as_seq h1 res == S.bn_mont_reduction (as_seq h0 n) mu (as_seq h0 c)) inline_for_extraction noextract val bn_mont_reduction: #t:limb_t -> k:BN.bn t -> bn_mont_reduction_st t k.BN.len inline_for_extraction noextract let bn_to_mont_st (t:limb_t) (nLen:BN.meta_len t) = n:lbignum t nLen -> mu:limb t -> r2:lbignum t nLen -> a:lbignum t nLen -> aM:lbignum t nLen -> Stack unit (requires fun h -> live h n /\ live h r2 /\ live h a /\ live h aM /\ disjoint a r2 /\ disjoint a n /\ disjoint a aM /\ disjoint n r2 /\ disjoint n aM /\ disjoint r2 aM) (ensures fun h0 _ h1 -> modifies (loc aM) h0 h1 /\ as_seq h1 aM == S.bn_to_mont (as_seq h0 n) mu (as_seq h0 r2) (as_seq h0 a)) inline_for_extraction noextract val bn_to_mont: #t:limb_t -> k:BN.bn t -> mr:bn_mont_reduction_st t k.BN.len -> bn_to_mont_st t k.BN.len inline_for_extraction noextract let bn_from_mont_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> mu:limb t -> aM:lbignum t len -> a:lbignum t len -> Stack unit (requires fun h -> live h n /\ live h a /\ live h aM /\ disjoint aM a /\ disjoint aM n /\ disjoint a n) (ensures fun h0 _ h1 -> modifies (loc a) h0 h1 /\ as_seq h1 a == S.bn_from_mont (as_seq h0 n) mu (as_seq h0 aM)) // This one just needs a specialized implementation of mont_reduction. No point // in doing a type class for a single function , so we take it as a parameter. inline_for_extraction noextract val bn_from_mont: #t:limb_t -> k:BN.bn t -> mr:bn_mont_reduction_st t k.BN.len -> bn_from_mont_st t k.BN.len inline_for_extraction noextract let bn_mont_mul_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> mu:limb t -> aM:lbignum t len -> bM:lbignum t len -> resM:lbignum t len -> Stack unit (requires fun h -> live h aM /\ live h bM /\ live h resM /\ live h n /\ disjoint resM n /\ eq_or_disjoint aM bM /\ eq_or_disjoint aM resM /\ eq_or_disjoint bM resM) (ensures fun h0 _ h1 -> modifies (loc resM) h0 h1 /\ as_seq h1 resM == S.bn_mont_mul (as_seq h0 n) mu (as_seq h0 aM) (as_seq h0 bM)) /// This one needs both the type class and a specialized montgomery reduction. inline_for_extraction noextract val bn_mont_mul: #t:limb_t -> k:BN.bn t -> mr:bn_mont_reduction_st t k.BN.len -> bn_mont_mul_st t k.BN.len inline_for_extraction noextract let bn_mont_sqr_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> mu:limb t -> aM:lbignum t len -> resM:lbignum t len -> Stack unit (requires fun h -> live h aM /\ live h resM /\ live h n /\ disjoint resM n /\ eq_or_disjoint aM resM) (ensures fun h0 _ h1 -> modifies (loc resM) h0 h1 /\ as_seq h1 resM == S.bn_mont_sqr (as_seq h0 n) mu (as_seq h0 aM)) /// This one needs both the type class and a specialized montgomery reduction. inline_for_extraction noextract val bn_mont_sqr: #t:limb_t -> k:BN.bn t -> mr:bn_mont_reduction_st t k.BN.len -> bn_mont_sqr_st t k.BN.len inline_for_extraction noextract class mont (t:limb_t) = { bn: BN.bn t; mont_check: bn_check_modulus_st t bn.BN.len; precomp: bn_precomp_r2_mod_n_st t bn.BN.len; reduction: bn_mont_reduction_st t bn.BN.len; to: bn_to_mont_st t bn.BN.len; from: bn_from_mont_st t bn.BN.len; mul: bn_mont_mul_st t bn.BN.len; sqr: bn_mont_sqr_st t bn.BN.len; } /// Encoding type-class hierarchies via a hook for type class resolution. inline_for_extraction noextract instance bn_of_mont (t:limb_t) (x:mont t) : BN.bn t = x.bn // A completely run-time-only instance where the functions above exist in the C code. inline_for_extraction noextract val mk_runtime_mont: #t:limb_t -> len:BN.meta_len t -> mont t val mk_runtime_mont_len_lemma: #t:limb_t -> len:BN.meta_len t -> Lemma ((mk_runtime_mont #t len).bn.BN.len == len) [SMTPat (mk_runtime_mont #t len)] inline_for_extraction noextract
false
false
Hacl.Bignum.Montgomery.fsti
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_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": 50, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val bn_mont_one_st : t: Hacl.Bignum.Definitions.limb_t -> nLen: Hacl.Bignum.meta_len t -> Type0
[]
Hacl.Bignum.Montgomery.bn_mont_one_st
{ "file_name": "code/bignum/Hacl.Bignum.Montgomery.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t: Hacl.Bignum.Definitions.limb_t -> nLen: Hacl.Bignum.meta_len t -> Type0
{ "end_col": 68, "end_line": 205, "start_col": 4, "start_line": 196 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "S" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Bignum.Base", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum.ModInvLimb", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Bignum.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum", "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 bn_mont_precomp_st (t:limb_t) (len:BN.meta_len t) = nBits:size_t -> n:lbignum t len -> r2:lbignum t len -> Stack (limb t) (requires fun h -> live h n /\ live h r2 /\ disjoint n r2 /\ 1 < bn_v h n /\ bn_v h n % 2 = 1 /\ pow2 (v nBits) < bn_v h n /\ v nBits / bits t < v len) (ensures fun h0 mu h1 -> modifies (loc r2) h0 h1 /\ (as_seq h1 r2, mu) == S.bn_mont_precomp (v nBits) (as_seq h0 n))
let bn_mont_precomp_st (t: limb_t) (len: BN.meta_len t) =
false
null
false
nBits: size_t -> n: lbignum t len -> r2: lbignum t len -> Stack (limb t) (requires fun h -> live h n /\ live h r2 /\ disjoint n r2 /\ 1 < bn_v h n /\ bn_v h n % 2 = 1 /\ pow2 (v nBits) < bn_v h n /\ v nBits / bits t < v len) (ensures fun h0 mu h1 -> modifies (loc r2) h0 h1 /\ (as_seq h1 r2, mu) == S.bn_mont_precomp (v nBits) (as_seq h0 n) )
{ "checked_file": "Hacl.Bignum.Montgomery.fsti.checked", "dependencies": [ "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModInvLimb.fsti.checked", "Hacl.Bignum.Definitions.fst.checked", "Hacl.Bignum.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Bignum.Montgomery.fsti" }
[ "total" ]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Lib.IntTypes.size_t", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.Definitions.limb", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.Buffer.live", "Lib.Buffer.MUT", "Lib.Buffer.disjoint", "Prims.b2t", "Prims.op_LessThan", "Hacl.Bignum.Definitions.bn_v", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Prims.pow2", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.op_Division", "Lib.IntTypes.bits", "Lib.Buffer.modifies", "Lib.Buffer.loc", "Prims.eq2", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "FStar.Pervasives.Native.Mktuple2", "Lib.Sequence.lseq", "Lib.Buffer.as_seq", "Hacl.Spec.Bignum.Montgomery.bn_mont_precomp" ]
[]
module Hacl.Bignum.Montgomery open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module S = Hacl.Spec.Bignum.Montgomery module BN = Hacl.Bignum include Hacl.Bignum.ModInvLimb #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let bn_check_modulus_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> Stack (limb t) (requires fun h -> live h n) (ensures fun h0 r h1 -> modifies0 h0 h1 /\ r == S.bn_check_modulus (as_seq h0 n)) inline_for_extraction noextract val bn_check_modulus: #t:limb_t -> #len:BN.meta_len t -> bn_check_modulus_st t len inline_for_extraction noextract let bn_precomp_r2_mod_n_st (t:limb_t) (len:BN.meta_len t) = nBits:size_t{v nBits / bits t < v len} -> n:lbignum t len -> res:lbignum t len -> Stack unit (requires fun h -> live h n /\ live h res /\ disjoint n res) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ as_seq h1 res == S.bn_precomp_r2_mod_n (v nBits) (as_seq h0 n)) inline_for_extraction noextract val bn_precomp_r2_mod_n: #t:limb_t -> k:BN.bn t -> bn_precomp_r2_mod_n_st t k.BN.len inline_for_extraction noextract
false
false
Hacl.Bignum.Montgomery.fsti
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_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": 50, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val bn_mont_precomp_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
[]
Hacl.Bignum.Montgomery.bn_mont_precomp_st
{ "file_name": "code/bignum/Hacl.Bignum.Montgomery.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
{ "end_col": 68, "end_line": 61, "start_col": 4, "start_line": 51 }
Prims.Tot
[ { "abbrev": true, "full_module": "Hacl.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "S" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Bignum.Base", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum.ModInvLimb", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Bignum", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Montgomery", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Bignum.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Bignum", "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 bn_mont_mul_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> mu:limb t -> aM:lbignum t len -> bM:lbignum t len -> resM:lbignum t len -> Stack unit (requires fun h -> live h aM /\ live h bM /\ live h resM /\ live h n /\ disjoint resM n /\ eq_or_disjoint aM bM /\ eq_or_disjoint aM resM /\ eq_or_disjoint bM resM) (ensures fun h0 _ h1 -> modifies (loc resM) h0 h1 /\ as_seq h1 resM == S.bn_mont_mul (as_seq h0 n) mu (as_seq h0 aM) (as_seq h0 bM))
let bn_mont_mul_st (t: limb_t) (len: BN.meta_len t) =
false
null
false
n: lbignum t len -> mu: limb t -> aM: lbignum t len -> bM: lbignum t len -> resM: lbignum t len -> Stack unit (requires fun h -> live h aM /\ live h bM /\ live h resM /\ live h n /\ disjoint resM n /\ eq_or_disjoint aM bM /\ eq_or_disjoint aM resM /\ eq_or_disjoint bM resM) (ensures fun h0 _ h1 -> modifies (loc resM) h0 h1 /\ as_seq h1 resM == S.bn_mont_mul (as_seq h0 n) mu (as_seq h0 aM) (as_seq h0 bM))
{ "checked_file": "Hacl.Bignum.Montgomery.fsti.checked", "dependencies": [ "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModInvLimb.fsti.checked", "Hacl.Bignum.Definitions.fst.checked", "Hacl.Bignum.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_file": "Hacl.Bignum.Montgomery.fsti" }
[ "total" ]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.meta_len", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum.Definitions.limb", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.Buffer.live", "Lib.Buffer.MUT", "Lib.Buffer.disjoint", "Lib.Buffer.eq_or_disjoint", "Lib.Buffer.modifies", "Lib.Buffer.loc", "Prims.eq2", "Lib.Sequence.lseq", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.Buffer.as_seq", "Hacl.Spec.Bignum.Montgomery.bn_mont_mul" ]
[]
module Hacl.Bignum.Montgomery open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions module S = Hacl.Spec.Bignum.Montgomery module BN = Hacl.Bignum include Hacl.Bignum.ModInvLimb #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let bn_check_modulus_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> Stack (limb t) (requires fun h -> live h n) (ensures fun h0 r h1 -> modifies0 h0 h1 /\ r == S.bn_check_modulus (as_seq h0 n)) inline_for_extraction noextract val bn_check_modulus: #t:limb_t -> #len:BN.meta_len t -> bn_check_modulus_st t len inline_for_extraction noextract let bn_precomp_r2_mod_n_st (t:limb_t) (len:BN.meta_len t) = nBits:size_t{v nBits / bits t < v len} -> n:lbignum t len -> res:lbignum t len -> Stack unit (requires fun h -> live h n /\ live h res /\ disjoint n res) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ as_seq h1 res == S.bn_precomp_r2_mod_n (v nBits) (as_seq h0 n)) inline_for_extraction noextract val bn_precomp_r2_mod_n: #t:limb_t -> k:BN.bn t -> bn_precomp_r2_mod_n_st t k.BN.len inline_for_extraction noextract let bn_mont_precomp_st (t:limb_t) (len:BN.meta_len t) = nBits:size_t -> n:lbignum t len -> r2:lbignum t len -> Stack (limb t) (requires fun h -> live h n /\ live h r2 /\ disjoint n r2 /\ 1 < bn_v h n /\ bn_v h n % 2 = 1 /\ pow2 (v nBits) < bn_v h n /\ v nBits / bits t < v len) (ensures fun h0 mu h1 -> modifies (loc r2) h0 h1 /\ (as_seq h1 r2, mu) == S.bn_mont_precomp (v nBits) (as_seq h0 n)) inline_for_extraction noextract val bn_mont_precomp: #t:limb_t -> len:BN.meta_len t -> precompr2:bn_precomp_r2_mod_n_st t len -> bn_mont_precomp_st t len inline_for_extraction noextract let bn_mont_reduction_st (t:limb_t) (len:size_t{0 < v len /\ v len + v len <= max_size_t}) = n:lbignum t len -> mu:limb t -> c:lbignum t (len +! len) -> res:lbignum t len -> Stack unit (requires fun h -> live h n /\ live h c /\ live h res /\ disjoint res n /\ disjoint res c /\ disjoint n c) (ensures fun h0 _ h1 -> modifies (loc res |+| loc c) h0 h1 /\ as_seq h1 res == S.bn_mont_reduction (as_seq h0 n) mu (as_seq h0 c)) inline_for_extraction noextract val bn_mont_reduction: #t:limb_t -> k:BN.bn t -> bn_mont_reduction_st t k.BN.len inline_for_extraction noextract let bn_to_mont_st (t:limb_t) (nLen:BN.meta_len t) = n:lbignum t nLen -> mu:limb t -> r2:lbignum t nLen -> a:lbignum t nLen -> aM:lbignum t nLen -> Stack unit (requires fun h -> live h n /\ live h r2 /\ live h a /\ live h aM /\ disjoint a r2 /\ disjoint a n /\ disjoint a aM /\ disjoint n r2 /\ disjoint n aM /\ disjoint r2 aM) (ensures fun h0 _ h1 -> modifies (loc aM) h0 h1 /\ as_seq h1 aM == S.bn_to_mont (as_seq h0 n) mu (as_seq h0 r2) (as_seq h0 a)) inline_for_extraction noextract val bn_to_mont: #t:limb_t -> k:BN.bn t -> mr:bn_mont_reduction_st t k.BN.len -> bn_to_mont_st t k.BN.len inline_for_extraction noextract let bn_from_mont_st (t:limb_t) (len:BN.meta_len t) = n:lbignum t len -> mu:limb t -> aM:lbignum t len -> a:lbignum t len -> Stack unit (requires fun h -> live h n /\ live h a /\ live h aM /\ disjoint aM a /\ disjoint aM n /\ disjoint a n) (ensures fun h0 _ h1 -> modifies (loc a) h0 h1 /\ as_seq h1 a == S.bn_from_mont (as_seq h0 n) mu (as_seq h0 aM)) // This one just needs a specialized implementation of mont_reduction. No point // in doing a type class for a single function , so we take it as a parameter. inline_for_extraction noextract val bn_from_mont: #t:limb_t -> k:BN.bn t -> mr:bn_mont_reduction_st t k.BN.len -> bn_from_mont_st t k.BN.len inline_for_extraction noextract
false
false
Hacl.Bignum.Montgomery.fsti
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_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": 50, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val bn_mont_mul_st : t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
[]
Hacl.Bignum.Montgomery.bn_mont_mul_st
{ "file_name": "code/bignum/Hacl.Bignum.Montgomery.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t: Hacl.Bignum.Definitions.limb_t -> len: Hacl.Bignum.meta_len t -> Type0
{ "end_col": 83, "end_line": 143, "start_col": 4, "start_line": 132 }
FStar.Tactics.Effect.Tac
val mapply0 (t: term) : Tac unit
[ { "abbrev": false, "full_module": "FStar.Tactics.Typeclasses", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.Derived", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxHelpers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2.Formula", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "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 mapply0 (t : term) : Tac unit = apply_squash_or_lem 10 t
val mapply0 (t: term) : Tac unit let mapply0 (t: term) : Tac unit =
true
null
false
apply_squash_or_lem 10 t
{ "checked_file": "FStar.Tactics.MApply.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxHelpers.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.V2.Builtins.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.Formula.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Tactics.MApply.fst" }
[]
[ "FStar.Tactics.NamedView.term", "FStar.Tactics.MApply.apply_squash_or_lem", "Prims.unit" ]
[]
module FStar.Tactics.MApply open FStar.Reflection.V2 open FStar.Reflection.V2.Formula open FStar.Tactics.Effect open FStar.Tactics.V2.Builtins open FStar.Tactics.NamedView open FStar.Tactics.V2.SyntaxHelpers open FStar.Tactics.V2.Derived open FStar.Tactics.V2.SyntaxCoercions open FStar.Tactics.Typeclasses private val push1 : (#p:Type) -> (#q:Type) -> squash (p ==> q) -> squash p -> squash q private let push1 #p #q f u = () private val push1' : (#p:Type) -> (#q:Type) -> (p ==> q) -> squash p -> squash q private let push1' #p #q f u = () (* * Some easier applying, which should prevent frustration * (or cause more when it doesn't do what you wanted to) *) val apply_squash_or_lem : d:nat -> term -> Tac unit let rec apply_squash_or_lem d t = (* Before anything, try a vanilla apply and apply_lemma *) try apply t with | _ -> try apply (`FStar.Squash.return_squash); apply t with | _ -> try apply_lemma t with | _ -> // Fuel cutoff, just in case. if d <= 0 then fail "mapply: out of fuel" else begin let ty = tc (cur_env ()) t in let tys, c = collect_arr ty in match inspect_comp c with | C_Lemma pre post _ -> begin let post = `((`#post) ()) in (* unthunk *) let post = norm_term [] post in (* Is the lemma an implication? We can try to intro *) match term_as_formula' post with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> fail "mapply: can't apply (1)" end | C_Total rt -> begin match unsquash_term rt with (* If the function returns a squash, just apply it, since our goals are squashed *) | Some rt -> // DUPLICATED, refactor! begin let rt = norm_term [] rt in (* Is the lemma an implication? We can try to intro *) match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> fail "mapply: can't apply (1)" end (* If not, we can try to introduce the squash ourselves first *) | None -> // DUPLICATED, refactor! begin let rt = norm_term [] rt in (* Is the lemma an implication? We can try to intro *) match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> apply (`FStar.Squash.return_squash); apply t end end | _ -> fail "mapply: can't apply (2)" end class termable (a : Type) = { to_term : a -> Tac term } instance termable_term : termable term = { to_term = (fun t -> t); } instance termable_binding : termable binding = { to_term = (fun b -> binding_to_term b); } (* `m` is for `magic` *)
false
false
FStar.Tactics.MApply.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 mapply0 (t: term) : Tac unit
[]
FStar.Tactics.MApply.mapply0
{ "file_name": "ulib/FStar.Tactics.MApply.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac Prims.unit
{ "end_col": 26, "end_line": 107, "start_col": 2, "start_line": 107 }
Prims.Tot
[@@ FStar.Tactics.Typeclasses.tcinstance] val termable_binding:termable binding
[ { "abbrev": false, "full_module": "FStar.Tactics.Typeclasses", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.Derived", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxHelpers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2.Formula", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "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
instance termable_binding : termable binding = { to_term = (fun b -> binding_to_term b); }
[@@ FStar.Tactics.Typeclasses.tcinstance] val termable_binding:termable binding [@@ FStar.Tactics.Typeclasses.tcinstance] let termable_binding:termable binding =
false
null
false
{ to_term = (fun b -> binding_to_term b) }
{ "checked_file": "FStar.Tactics.MApply.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxHelpers.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.V2.Builtins.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.Formula.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Tactics.MApply.fst" }
[ "total" ]
[ "FStar.Tactics.MApply.Mktermable", "FStar.Tactics.NamedView.binding", "FStar.Tactics.V2.SyntaxCoercions.binding_to_term", "FStar.Tactics.NamedView.term" ]
[]
module FStar.Tactics.MApply open FStar.Reflection.V2 open FStar.Reflection.V2.Formula open FStar.Tactics.Effect open FStar.Tactics.V2.Builtins open FStar.Tactics.NamedView open FStar.Tactics.V2.SyntaxHelpers open FStar.Tactics.V2.Derived open FStar.Tactics.V2.SyntaxCoercions open FStar.Tactics.Typeclasses private val push1 : (#p:Type) -> (#q:Type) -> squash (p ==> q) -> squash p -> squash q private let push1 #p #q f u = () private val push1' : (#p:Type) -> (#q:Type) -> (p ==> q) -> squash p -> squash q private let push1' #p #q f u = () (* * Some easier applying, which should prevent frustration * (or cause more when it doesn't do what you wanted to) *) val apply_squash_or_lem : d:nat -> term -> Tac unit let rec apply_squash_or_lem d t = (* Before anything, try a vanilla apply and apply_lemma *) try apply t with | _ -> try apply (`FStar.Squash.return_squash); apply t with | _ -> try apply_lemma t with | _ -> // Fuel cutoff, just in case. if d <= 0 then fail "mapply: out of fuel" else begin let ty = tc (cur_env ()) t in let tys, c = collect_arr ty in match inspect_comp c with | C_Lemma pre post _ -> begin let post = `((`#post) ()) in (* unthunk *) let post = norm_term [] post in (* Is the lemma an implication? We can try to intro *) match term_as_formula' post with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> fail "mapply: can't apply (1)" end | C_Total rt -> begin match unsquash_term rt with (* If the function returns a squash, just apply it, since our goals are squashed *) | Some rt -> // DUPLICATED, refactor! begin let rt = norm_term [] rt in (* Is the lemma an implication? We can try to intro *) match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> fail "mapply: can't apply (1)" end (* If not, we can try to introduce the squash ourselves first *) | None -> // DUPLICATED, refactor! begin let rt = norm_term [] rt in (* Is the lemma an implication? We can try to intro *) match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> apply (`FStar.Squash.return_squash); apply t end end | _ -> fail "mapply: can't apply (2)" end class termable (a : Type) = { to_term : a -> Tac term } instance termable_term : termable term = { to_term = (fun t -> t); }
false
true
FStar.Tactics.MApply.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
[@@ FStar.Tactics.Typeclasses.tcinstance] val termable_binding:termable binding
[]
FStar.Tactics.MApply.termable_binding
{ "file_name": "ulib/FStar.Tactics.MApply.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
FStar.Tactics.MApply.termable FStar.Tactics.NamedView.binding
{ "end_col": 41, "end_line": 102, "start_col": 2, "start_line": 102 }
Prims.Tot
[@@ FStar.Tactics.Typeclasses.tcinstance] val termable_term:termable term
[ { "abbrev": false, "full_module": "FStar.Tactics.Typeclasses", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.Derived", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxHelpers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2.Formula", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "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
instance termable_term : termable term = { to_term = (fun t -> t); }
[@@ FStar.Tactics.Typeclasses.tcinstance] val termable_term:termable term [@@ FStar.Tactics.Typeclasses.tcinstance] let termable_term:termable term =
false
null
false
{ to_term = (fun t -> t) }
{ "checked_file": "FStar.Tactics.MApply.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxHelpers.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.V2.Builtins.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.Formula.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Tactics.MApply.fst" }
[ "total" ]
[ "FStar.Tactics.MApply.Mktermable", "FStar.Tactics.NamedView.term" ]
[]
module FStar.Tactics.MApply open FStar.Reflection.V2 open FStar.Reflection.V2.Formula open FStar.Tactics.Effect open FStar.Tactics.V2.Builtins open FStar.Tactics.NamedView open FStar.Tactics.V2.SyntaxHelpers open FStar.Tactics.V2.Derived open FStar.Tactics.V2.SyntaxCoercions open FStar.Tactics.Typeclasses private val push1 : (#p:Type) -> (#q:Type) -> squash (p ==> q) -> squash p -> squash q private let push1 #p #q f u = () private val push1' : (#p:Type) -> (#q:Type) -> (p ==> q) -> squash p -> squash q private let push1' #p #q f u = () (* * Some easier applying, which should prevent frustration * (or cause more when it doesn't do what you wanted to) *) val apply_squash_or_lem : d:nat -> term -> Tac unit let rec apply_squash_or_lem d t = (* Before anything, try a vanilla apply and apply_lemma *) try apply t with | _ -> try apply (`FStar.Squash.return_squash); apply t with | _ -> try apply_lemma t with | _ -> // Fuel cutoff, just in case. if d <= 0 then fail "mapply: out of fuel" else begin let ty = tc (cur_env ()) t in let tys, c = collect_arr ty in match inspect_comp c with | C_Lemma pre post _ -> begin let post = `((`#post) ()) in (* unthunk *) let post = norm_term [] post in (* Is the lemma an implication? We can try to intro *) match term_as_formula' post with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> fail "mapply: can't apply (1)" end | C_Total rt -> begin match unsquash_term rt with (* If the function returns a squash, just apply it, since our goals are squashed *) | Some rt -> // DUPLICATED, refactor! begin let rt = norm_term [] rt in (* Is the lemma an implication? We can try to intro *) match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> fail "mapply: can't apply (1)" end (* If not, we can try to introduce the squash ourselves first *) | None -> // DUPLICATED, refactor! begin let rt = norm_term [] rt in (* Is the lemma an implication? We can try to intro *) match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> apply (`FStar.Squash.return_squash); apply t end end | _ -> fail "mapply: can't apply (2)" end class termable (a : Type) = { to_term : a -> Tac term }
false
true
FStar.Tactics.MApply.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
[@@ FStar.Tactics.Typeclasses.tcinstance] val termable_term:termable term
[]
FStar.Tactics.MApply.termable_term
{ "file_name": "ulib/FStar.Tactics.MApply.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
FStar.Tactics.MApply.termable FStar.Tactics.NamedView.term
{ "end_col": 25, "end_line": 98, "start_col": 2, "start_line": 98 }
FStar.Tactics.Effect.Tac
val mapply (#ty: Type) {| _: termable ty |} (x: ty) : Tac unit
[ { "abbrev": false, "full_module": "FStar.Tactics.Typeclasses", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.Derived", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxHelpers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2.Formula", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "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 mapply (#ty:Type) {| termable ty |} (x : ty) : Tac unit = let t = to_term x in apply_squash_or_lem 10 t
val mapply (#ty: Type) {| _: termable ty |} (x: ty) : Tac unit let mapply (#ty: Type) {| _: termable ty |} (x: ty) : Tac unit =
true
null
false
let t = to_term x in apply_squash_or_lem 10 t
{ "checked_file": "FStar.Tactics.MApply.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxHelpers.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.V2.Builtins.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.Formula.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Tactics.MApply.fst" }
[]
[ "FStar.Tactics.MApply.termable", "FStar.Tactics.MApply.apply_squash_or_lem", "Prims.unit", "FStar.Tactics.NamedView.term", "FStar.Tactics.MApply.to_term" ]
[]
module FStar.Tactics.MApply open FStar.Reflection.V2 open FStar.Reflection.V2.Formula open FStar.Tactics.Effect open FStar.Tactics.V2.Builtins open FStar.Tactics.NamedView open FStar.Tactics.V2.SyntaxHelpers open FStar.Tactics.V2.Derived open FStar.Tactics.V2.SyntaxCoercions open FStar.Tactics.Typeclasses private val push1 : (#p:Type) -> (#q:Type) -> squash (p ==> q) -> squash p -> squash q private let push1 #p #q f u = () private val push1' : (#p:Type) -> (#q:Type) -> (p ==> q) -> squash p -> squash q private let push1' #p #q f u = () (* * Some easier applying, which should prevent frustration * (or cause more when it doesn't do what you wanted to) *) val apply_squash_or_lem : d:nat -> term -> Tac unit let rec apply_squash_or_lem d t = (* Before anything, try a vanilla apply and apply_lemma *) try apply t with | _ -> try apply (`FStar.Squash.return_squash); apply t with | _ -> try apply_lemma t with | _ -> // Fuel cutoff, just in case. if d <= 0 then fail "mapply: out of fuel" else begin let ty = tc (cur_env ()) t in let tys, c = collect_arr ty in match inspect_comp c with | C_Lemma pre post _ -> begin let post = `((`#post) ()) in (* unthunk *) let post = norm_term [] post in (* Is the lemma an implication? We can try to intro *) match term_as_formula' post with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> fail "mapply: can't apply (1)" end | C_Total rt -> begin match unsquash_term rt with (* If the function returns a squash, just apply it, since our goals are squashed *) | Some rt -> // DUPLICATED, refactor! begin let rt = norm_term [] rt in (* Is the lemma an implication? We can try to intro *) match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> fail "mapply: can't apply (1)" end (* If not, we can try to introduce the squash ourselves first *) | None -> // DUPLICATED, refactor! begin let rt = norm_term [] rt in (* Is the lemma an implication? We can try to intro *) match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> apply (`FStar.Squash.return_squash); apply t end end | _ -> fail "mapply: can't apply (2)" end class termable (a : Type) = { to_term : a -> Tac term } instance termable_term : termable term = { to_term = (fun t -> t); } instance termable_binding : termable binding = { to_term = (fun b -> binding_to_term b); } (* `m` is for `magic` *) let mapply0 (t : term) : Tac unit = apply_squash_or_lem 10 t
false
false
FStar.Tactics.MApply.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 mapply (#ty: Type) {| _: termable ty |} (x: ty) : Tac unit
[]
FStar.Tactics.MApply.mapply
{ "file_name": "ulib/FStar.Tactics.MApply.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{| _: FStar.Tactics.MApply.termable ty |} -> x: ty -> FStar.Tactics.Effect.Tac Prims.unit
{ "end_col": 26, "end_line": 111, "start_col": 61, "start_line": 109 }
FStar.Tactics.Effect.Tac
val apply_squash_or_lem : d:nat -> term -> Tac unit
[ { "abbrev": false, "full_module": "FStar.Tactics.Typeclasses", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxCoercions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.Derived", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.SyntaxHelpers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.NamedView", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2.Formula", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "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 rec apply_squash_or_lem d t = (* Before anything, try a vanilla apply and apply_lemma *) try apply t with | _ -> try apply (`FStar.Squash.return_squash); apply t with | _ -> try apply_lemma t with | _ -> // Fuel cutoff, just in case. if d <= 0 then fail "mapply: out of fuel" else begin let ty = tc (cur_env ()) t in let tys, c = collect_arr ty in match inspect_comp c with | C_Lemma pre post _ -> begin let post = `((`#post) ()) in (* unthunk *) let post = norm_term [] post in (* Is the lemma an implication? We can try to intro *) match term_as_formula' post with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> fail "mapply: can't apply (1)" end | C_Total rt -> begin match unsquash_term rt with (* If the function returns a squash, just apply it, since our goals are squashed *) | Some rt -> // DUPLICATED, refactor! begin let rt = norm_term [] rt in (* Is the lemma an implication? We can try to intro *) match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> fail "mapply: can't apply (1)" end (* If not, we can try to introduce the squash ourselves first *) | None -> // DUPLICATED, refactor! begin let rt = norm_term [] rt in (* Is the lemma an implication? We can try to intro *) match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d-1) t | _ -> apply (`FStar.Squash.return_squash); apply t end end | _ -> fail "mapply: can't apply (2)" end
val apply_squash_or_lem : d:nat -> term -> Tac unit let rec apply_squash_or_lem d t =
true
null
false
try apply t with | _ -> try (apply (`FStar.Squash.return_squash); apply t) with | _ -> try apply_lemma t with | _ -> if d <= 0 then fail "mapply: out of fuel" else let ty = tc (cur_env ()) t in let tys, c = collect_arr ty in match inspect_comp c with | C_Lemma pre post _ -> let post = `((`#post) ()) in let post = norm_term [] post in (match term_as_formula' post with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d - 1) t | _ -> fail "mapply: can't apply (1)") | C_Total rt -> (match unsquash_term rt with | Some rt -> let rt = norm_term [] rt in (match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d - 1) t | _ -> fail "mapply: can't apply (1)") | None -> let rt = norm_term [] rt in match term_as_formula' rt with | Implies p q -> apply_lemma (`push1); apply_squash_or_lem (d - 1) t | _ -> apply (`FStar.Squash.return_squash); apply t) | _ -> fail "mapply: can't apply (2)"
{ "checked_file": "FStar.Tactics.MApply.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.SyntaxHelpers.fst.checked", "FStar.Tactics.V2.SyntaxCoercions.fst.checked", "FStar.Tactics.V2.Derived.fst.checked", "FStar.Tactics.V2.Builtins.fsti.checked", "FStar.Tactics.Typeclasses.fsti.checked", "FStar.Tactics.NamedView.fsti.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Squash.fsti.checked", "FStar.Reflection.V2.Formula.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "FStar.Tactics.MApply.fst" }
[]
[ "Prims.nat", "FStar.Tactics.NamedView.term", "FStar.Tactics.V2.Derived.try_with", "Prims.unit", "FStar.Tactics.V2.Derived.apply", "Prims.exn", "FStar.Tactics.V2.Derived.apply_lemma", "Prims.op_LessThanOrEqual", "FStar.Tactics.V2.Derived.fail", "Prims.bool", "Prims.list", "FStar.Reflection.Types.typ", "FStar.Tactics.NamedView.comp", "FStar.Tactics.NamedView.inspect_comp", "FStar.Reflection.Types.term", "FStar.Tactics.MApply.apply_squash_or_lem", "Prims.op_Subtraction", "FStar.Reflection.V2.Formula.formula", "FStar.Reflection.V2.Formula.term_as_formula'", "FStar.Tactics.V2.Derived.norm_term", "Prims.Nil", "FStar.Pervasives.norm_step", "FStar.Reflection.V2.Derived.unsquash_term", "FStar.Reflection.V2.Data.comp_view", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.V2.SyntaxHelpers.collect_arr", "FStar.Tactics.V2.Builtins.tc", "FStar.Reflection.Types.env", "FStar.Tactics.V2.Derived.cur_env" ]
[]
module FStar.Tactics.MApply open FStar.Reflection.V2 open FStar.Reflection.V2.Formula open FStar.Tactics.Effect open FStar.Tactics.V2.Builtins open FStar.Tactics.NamedView open FStar.Tactics.V2.SyntaxHelpers open FStar.Tactics.V2.Derived open FStar.Tactics.V2.SyntaxCoercions open FStar.Tactics.Typeclasses private val push1 : (#p:Type) -> (#q:Type) -> squash (p ==> q) -> squash p -> squash q private let push1 #p #q f u = () private val push1' : (#p:Type) -> (#q:Type) -> (p ==> q) -> squash p -> squash q private let push1' #p #q f u = () (* * Some easier applying, which should prevent frustration * (or cause more when it doesn't do what you wanted to) *) val apply_squash_or_lem : d:nat -> term -> Tac unit let rec apply_squash_or_lem d t =
false
false
FStar.Tactics.MApply.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 apply_squash_or_lem : d:nat -> term -> Tac unit
[ "recursion" ]
FStar.Tactics.MApply.apply_squash_or_lem
{ "file_name": "ulib/FStar.Tactics.MApply.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
d: Prims.nat -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac Prims.unit
{ "end_col": 7, "end_line": 91, "start_col": 4, "start_line": 34 }
Prims.Tot
val compute_blake2b_256:compute_st Blake2B
[ { "abbrev": false, "full_module": "Hacl.Hash.Blake2", "short_module": null }, { "abbrev": false, "full_module": "Hacl.HMAC", "short_module": null }, { "abbrev": false, "full_module": "EverCrypt.Helpers", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.HMAC", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Hash.Definitions", "short_module": "D" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Hacl.HMAC", "short_module": null }, { "abbrev": false, "full_module": "Hacl.HMAC", "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 compute_blake2b_256: compute_st Blake2B = mk_compute (D.mk_impl Blake2B Hacl.Impl.Blake2.Core.M256) hash_blake2b_256 alloca_blake2b_256 init_blake2b_256 update_multi_blake2b_256 update_last_blake2b_256 finish_blake2b_256
val compute_blake2b_256:compute_st Blake2B let compute_blake2b_256:compute_st Blake2B =
false
null
false
mk_compute (D.mk_impl Blake2B Hacl.Impl.Blake2.Core.M256) hash_blake2b_256 alloca_blake2b_256 init_blake2b_256 update_multi_blake2b_256 update_last_blake2b_256 finish_blake2b_256
{ "checked_file": "Hacl.HMAC.Blake2b_256.fst.checked", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Impl.Blake2.Core.fsti.checked", "Hacl.HMAC.fsti.checked", "Hacl.Hash.Definitions.fst.checked", "Hacl.Hash.Blake2.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "EverCrypt.Helpers.fsti.checked" ], "interface_file": false, "source_file": "Hacl.HMAC.Blake2b_256.fst" }
[ "total" ]
[ "Hacl.HMAC.mk_compute", "Hacl.Hash.Definitions.mk_impl", "Spec.Hash.Definitions.Blake2B", "Hacl.Impl.Blake2.Core.M256", "Hacl.Hash.Blake2.hash_blake2b_256", "Hacl.Hash.Blake2.alloca_blake2b_256", "Hacl.Hash.Blake2.init_blake2b_256", "Hacl.Hash.Blake2.update_multi_blake2b_256", "Hacl.Hash.Blake2.update_last_blake2b_256", "Hacl.Hash.Blake2.finish_blake2b_256" ]
[]
module Hacl.HMAC.Blake2b_256 module B = LowStar.Buffer module D = Hacl.Hash.Definitions open Spec.Agile.HMAC open Spec.Hash.Definitions open FStar.HyperStack.ST open Lib.IntTypes open EverCrypt.Helpers open Hacl.HMAC open Hacl.Hash.Blake2 #set-options "--z3rlimit 25 --fuel 0 --ifuel 0" [@@ Comment "Write the HMAC-BLAKE2b MAC of a message (`data`) by using a key (`key`) into `dst`. The key can be any length and will be hashed if it is longer and padded if it is shorter than 128 bytes. `dst` must point to 64 bytes of memory."]
false
true
Hacl.HMAC.Blake2b_256.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_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": 25, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val compute_blake2b_256:compute_st Blake2B
[]
Hacl.HMAC.Blake2b_256.compute_blake2b_256
{ "file_name": "code/hmac/Hacl.HMAC.Blake2b_256.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.HMAC.compute_st Spec.Hash.Definitions.Blake2B
{ "end_col": 80, "end_line": 25, "start_col": 2, "start_line": 23 }
Prims.Tot
val va_code_Loop_rounds_16_63_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ())))))))
val va_code_Loop_rounds_16_63_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> Tot va_code let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 =
false
null
false
(va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ())))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.PPC64LE.InsVector.va_code_SHA256_sigma0", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.InsVector.va_code_Vadduwm", "Vale.PPC64LE.InsVector.va_code_SHA256_sigma1", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_16_63_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg0: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg1: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg2: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg3: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
{ "end_col": 65, "end_line": 207, "start_col": 2, "start_line": 204 }
Prims.Tot
val va_code_Loop_rounds_3_7_11_body : i:nat -> msg:va_operand_vec_opr -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ()))))
val va_code_Loop_rounds_3_7_11_body : i:nat -> msg:va_operand_vec_opr -> Tot va_code let va_code_Loop_rounds_3_7_11_body i msg =
false
null
false
(va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ()))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.PPC64LE.InsVector.va_code_Load128_byte16_buffer", "Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.Arch.HeapTypes_s.Secret", "Vale.PPC64LE.InsBasic.va_code_AddImm", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_3_7_11_body : i:nat -> msg:va_operand_vec_opr -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_3_7_11_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
{ "end_col": 45, "end_line": 33, "start_col": 2, "start_line": 31 }
Prims.Tot
val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ()))))))))))))))
val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec =
false
null
false
(va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ()))))))))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.PPC64LE.InsVector.va_codegen_success_Vadduwm", "Vale.PPC64LE.InsVector.va_codegen_success_Vsel", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.op_disEquality", "Prims.int", "Vale.PPC64LE.Decls.va_ttrue", "Prims.bool", "Vale.PPC64LE.Decls.va_pbool", "Vale.PPC64LE.InsVector.va_codegen_success_SHA256_Sigma1", "Vale.PPC64LE.InsVector.va_codegen_success_Vxor", "Vale.PPC64LE.InsVector.va_codegen_success_SHA256_Sigma0", "Prims.op_Equality" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_63_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg: Vale.PPC64LE.Decls.va_operand_vec_opr -> a_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> b_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> c_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> d_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> e_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> f_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> g_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> h_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 92, "end_line": 317, "start_col": 2, "start_line": 305 }
Prims.Tot
val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ()))
val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool let va_codegen_success_Loop_round_0_61_body i =
false
null
false
(va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ()))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_pbool_and", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Vale.PPC64LE.InsVector.va_codegen_success_Load128_word4_buffer", "Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.Arch.HeapTypes_s.Secret", "Vale.PPC64LE.InsBasic.va_codegen_success_AddImm", "Vale.PPC64LE.Decls.va_ttrue", "Prims.bool", "Vale.PPC64LE.InsVector.va_codegen_success_Vsldoi", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_round_0_61_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 18, "end_line": 785, "start_col": 2, "start_line": 780 }
Prims.Tot
val va_codegen_success_Loop_rounds_1_3 : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ()))))
val va_codegen_success_Loop_rounds_1_3 : va_dummy:unit -> Tot va_pbool let va_codegen_success_Loop_rounds_1_3 () =
false
null
false
(va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ()))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_1_3 : va_dummy:unit -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_1_3
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 20, "end_line": 1582, "start_col": 2, "start_line": 1578 }
Prims.Tot
val va_codegen_success_Loop_rounds_60_63_b : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ())))))))
val va_codegen_success_Loop_rounds_60_63_b : va_dummy:unit -> Tot va_pbool let va_codegen_success_Loop_rounds_60_63_b () =
false
null
false
(va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ())))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_round_0_61_body", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_60_63_b : va_dummy:unit -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_60_63_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 93, "end_line": 1498, "start_col": 2, "start_line": 1485 }
Prims.Tot
val va_qcode_Loop_rounds_1_3 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ()))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (()))))))
val va_qcode_Loop_rounds_1_3 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) let va_qcode_Loop_rounds_1_3 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (()))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_3" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_1_3 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ()))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_1_3
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_3 ())
{ "end_col": 24, "end_line": 1596, "start_col": 2, "start_line": 1587 }
Prims.Tot
val va_qcode_Loop_rounds_60_63_a (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_60_63_a ()))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_60_63_a (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_60_63_a ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 782 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 783 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 784 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QEmpty (()))))))
val va_qcode_Loop_rounds_60_63_a (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_60_63_a ())) let va_qcode_Loop_rounds_60_63_a (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_60_63_a ())) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 782 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 783 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 784 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QEmpty (()))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_16_63_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_60_63_a" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_c va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_c va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 703 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 725 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 9 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 10 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 11 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 12 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_c i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_c (va_code_Loop_rounds_16_59_c i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 12 va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_d i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_d (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 757 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 758 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 759 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 760 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_d va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_d va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 733 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 755 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_d i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_d (va_code_Loop_rounds_16_59_d i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_vec 0 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_a () = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_a () = (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_a (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_60_63_a (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_60_63_a ()))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_60_63_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_60_63_a ())
{ "end_col": 76, "end_line": 2150, "start_col": 2, "start_line": 2141 }
Prims.Tot
val va_codegen_success_Loop_rounds_60_63_a : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_60_63_a () = (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_ttrue ()))))
val va_codegen_success_Loop_rounds_60_63_a : va_dummy:unit -> Tot va_pbool let va_codegen_success_Loop_rounds_60_63_a () =
false
null
false
(va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_ttrue ()))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_c va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_c va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 703 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 725 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 9 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 10 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 11 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 12 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_c i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_c (va_code_Loop_rounds_16_59_c i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 12 va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_d i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_d (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 757 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 758 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 759 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 760 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_d va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_d va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 733 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 755 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_d i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_d (va_code_Loop_rounds_16_59_d i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_vec 0 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_a () = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_60_63_a : va_dummy:unit -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_60_63_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 66, "end_line": 2136, "start_col": 2, "start_line": 2131 }
Prims.Tot
val va_qcode_Loop_rounds_3_7_11_body (va_mods: va_mods_t) (i: nat) (msg: vec_opr) (in_b: buffer128) (offset: nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (())))))
val va_qcode_Loop_rounds_3_7_11_body (va_mods: va_mods_t) (i: nat) (msg: vec_opr) (in_b: buffer128) (offset: nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) let va_qcode_Loop_rounds_3_7_11_body (va_mods: va_mods_t) (i: nat) (msg: vec_opr) (in_b: buffer128) (offset: nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (())))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.PPC64LE.Decls.vec_opr", "Vale.PPC64LE.Memory.buffer128", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.InsVector.va_code_Load128_byte16_buffer", "Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.Arch.HeapTypes_s.Secret", "Vale.PPC64LE.InsBasic.va_code_AddImm", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.PPC64LE.InsVector.va_quick_Load128_byte16_buffer", "Vale.PPC64LE.InsBasic.va_quick_AddImm", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_3_7_11_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_3_7_11_body (va_mods: va_mods_t) (i: nat) (msg: vec_opr) (in_b: buffer128) (offset: nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_3_7_11_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> msg: Vale.PPC64LE.Decls.vec_opr -> in_b: Vale.PPC64LE.Memory.buffer128 -> offset: Prims.nat -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_3_7_11_body i msg)
{ "end_col": 88, "end_line": 49, "start_col": 2, "start_line": 44 }
Prims.Tot
val va_code_Loop_rounds_9_11 : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ())))))
val va_code_Loop_rounds_9_11 : va_dummy:unit -> Tot va_code let va_code_Loop_rounds_9_11 () =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ())))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_9_11 : va_dummy:unit -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_9_11
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 43, "end_line": 1692, "start_col": 2, "start_line": 1689 }
Prims.Tot
val va_code_Loop_rounds_5_7 : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ())))))
val va_code_Loop_rounds_5_7 : va_dummy:unit -> Tot va_code let va_code_Loop_rounds_5_7 () =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) ) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ())))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_5_7 : va_dummy:unit -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_5_7
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 43, "end_line": 1633, "start_col": 2, "start_line": 1630 }
Prims.Tot
val va_qcode_Loop_rounds_13_15 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ()))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (()))))))
val va_qcode_Loop_rounds_13_15 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) let va_qcode_Loop_rounds_13_15 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (()))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_13_15" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_13_15 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ()))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_13_15
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_13_15 ())
{ "end_col": 24, "end_line": 1773, "start_col": 2, "start_line": 1764 }
Prims.Tot
val va_codegen_success_Loop_rounds_3_7_11_body : i:nat -> msg:va_operand_vec_opr -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ())))
val va_codegen_success_Loop_rounds_3_7_11_body : i:nat -> msg:va_operand_vec_opr -> Tot va_pbool let va_codegen_success_Loop_rounds_3_7_11_body i msg =
false
null
false
(va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ())))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.PPC64LE.InsVector.va_codegen_success_Load128_byte16_buffer", "Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.Arch.HeapTypes_s.Secret", "Vale.PPC64LE.InsBasic.va_codegen_success_AddImm", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_3_7_11_body : i:nat -> msg:va_operand_vec_opr -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_3_7_11_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 45, "end_line": 39, "start_col": 2, "start_line": 37 }
Prims.Tot
val va_qcode_Loop_rounds_60_63_b (va_mods: va_mods_t) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ()))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (())))))))))
val va_qcode_Loop_rounds_60_63_b (va_mods: va_mods_t) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) let va_qcode_Loop_rounds_60_63_b (va_mods: va_mods_t) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (())))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_0_63_body", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_round_0_61_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_60_63_b" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_60_63_b (va_mods: va_mods_t) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ()))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_60_63_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_60_63_b ())
{ "end_col": 27, "end_line": 1527, "start_col": 2, "start_line": 1503 }
Prims.Tot
val va_codegen_success_Loop_rounds_13_15 : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ()))))
val va_codegen_success_Loop_rounds_13_15 : va_dummy:unit -> Tot va_pbool let va_codegen_success_Loop_rounds_13_15 () =
false
null
false
(va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ()))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_13_15 : va_dummy:unit -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_13_15
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 25, "end_line": 1759, "start_col": 2, "start_line": 1755 }
Prims.Tot
val va_codegen_success_Loop_rounds_0_59_b : i:nat -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ())))))))))
val va_codegen_success_Loop_rounds_0_59_b : i:nat -> Tot va_pbool let va_codegen_success_Loop_rounds_0_59_b i =
false
null
false
(va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) ) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ())))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_round_0_61_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_0_59_b : i:nat -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_59_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 75, "end_line": 1102, "start_col": 2, "start_line": 1087 }
Prims.Tot
val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ())))
val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 =
false
null
false
(va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ())))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Vale.PPC64LE.InsVector.va_code_Vsldoi", "Vale.PPC64LE.Decls.va_CNil", "Prims.bool", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg0: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg1: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
{ "end_col": 76, "end_line": 92, "start_col": 2, "start_line": 88 }
Prims.Tot
val va_code_Loop_rounds_60_63_a : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_60_63_a () = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CNil ())))))
val va_code_Loop_rounds_60_63_a : va_dummy:unit -> Tot va_code let va_code_Loop_rounds_60_63_a () =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CNil ())))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_c va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_c va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 703 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 725 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 9 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 10 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 11 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 12 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_c i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_c (va_code_Loop_rounds_16_59_c i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 12 va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_d i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_d (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 757 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 758 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 759 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 760 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_d va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_d va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 733 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 755 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_d i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_d (va_code_Loop_rounds_16_59_d i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_vec 0 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_a [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_60_63_a : va_dummy:unit -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_60_63_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 66, "end_line": 2127, "start_col": 2, "start_line": 2123 }
Prims.Tot
val va_codegen_success_Loop_rounds_5_7 : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ()))))
val va_codegen_success_Loop_rounds_5_7 : va_dummy:unit -> Tot va_pbool let va_codegen_success_Loop_rounds_5_7 () =
false
null
false
(va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ()))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_5_7 : va_dummy:unit -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_5_7
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 20, "end_line": 1641, "start_col": 2, "start_line": 1637 }
Prims.Tot
val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ()))
val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 =
false
null
false
(va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ()))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_pbool_and", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Vale.PPC64LE.InsVector.va_codegen_success_Vsldoi", "Vale.PPC64LE.Decls.va_ttrue", "Prims.bool", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_1_15_shift_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg0: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg1: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 70, "end_line": 102, "start_col": 2, "start_line": 98 }
Prims.Tot
val va_qcode_Loop_rounds_5_7 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ()))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (()))))))
val va_qcode_Loop_rounds_5_7 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) let va_qcode_Loop_rounds_5_7 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (()))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_5_7" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_5_7 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ()))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_5_7
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_5_7 ())
{ "end_col": 24, "end_line": 1655, "start_col": 2, "start_line": 1646 }
Prims.Tot
val va_codegen_success_Loop_rounds_0_59_d : i:nat -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ())))))))))
val va_codegen_success_Loop_rounds_0_59_d : i:nat -> Tot va_pbool let va_codegen_success_Loop_rounds_0_59_d i =
false
null
false
(va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) ) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ())))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_round_0_61_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_0_59_d : i:nat -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_59_d
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 75, "end_line": 1368, "start_col": 2, "start_line": 1353 }
Prims.Ghost
val va_wpProof_Loop_rounds_60_63_a : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_60_63_a block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_60_63_a ()) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_60_63_a block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_a (va_code_Loop_rounds_60_63_a ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_60_63_a : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_60_63_a block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_60_63_a ()) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_60_63_a block va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_60_63_a (va_code_Loop_rounds_60_63_a ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_60_63_a", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_60_63_a" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_c va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_c va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 703 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 725 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 9 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 10 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 11 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 12 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_c i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_c (va_code_Loop_rounds_16_59_c i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 12 va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_d i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_d (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 757 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 758 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 759 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 760 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_d va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_d va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 733 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 755 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_d i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_d (va_code_Loop_rounds_16_59_d i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_vec 0 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_a () = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_a () = (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_a (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_60_63_a ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 782 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 783 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 784 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_a va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_a va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_a ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 763 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 780 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 61) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 62)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 63))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_60_63_a : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_60_63_a block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_60_63_a ()) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_60_63_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 2180, "start_col": 53, "start_line": 2172 }
Prims.Ghost
val va_lemma_Loop_rounds_3_7_11_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> in_b:buffer128 -> offset:nat -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_3_7_11_body i msg) va_s0 /\ va_is_dst_vec_opr msg va_s0 /\ va_get_ok va_s0 /\ (l_and (l_and (0 <= i) (i < 15)) (i `op_Modulus` 4 == 3) /\ msg == i + 1 /\ Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 4 va_s0) in_b offset 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 4 va_s0 + 16 < pow2_64))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM)) /\ va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16) /\ va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_rounds_3_7_11_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> in_b:buffer128 -> offset:nat -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_3_7_11_body i msg) va_s0 /\ va_is_dst_vec_opr msg va_s0 /\ va_get_ok va_s0 /\ (l_and (l_and (0 <= i) (i < 15)) (i `op_Modulus` 4 == 3) /\ msg == i + 1 /\ Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 4 va_s0) in_b offset 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 4 va_s0 + 16 < pow2_64))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM)) /\ va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16) /\ va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0))))) let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset =
false
null
false
let va_mods:va_mods_t = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Memory.buffer128", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_reg", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Vale.PPC64LE.QuickCode.va_mod_vec_opr", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_3_7_11_body", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Vale.Def.Types_s.quad32", "Vale.PPC64LE.Decls.va_eval_vec_opr", "Vale.Def.Types_s.reverse_bytes_quad32", "Vale.PPC64LE.Decls.buffer128_read", "Vale.PPC64LE.Decls.va_get_mem_heaplet", "Prims.int", "Vale.PPC64LE.Decls.va_get_reg", "Prims.op_Addition", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_3_7_11_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (())))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_rounds_3_7_11_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> in_b:buffer128 -> offset:nat -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_3_7_11_body i msg) va_s0 /\ va_is_dst_vec_opr msg va_s0 /\ va_get_ok va_s0 /\ (l_and (l_and (0 <= i) (i < 15)) (i `op_Modulus` 4 == 3) /\ msg == i + 1 /\ Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 4 va_s0) in_b offset 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 4 va_s0 + 16 < pow2_64))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM)) /\ va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16) /\ va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_3_7_11_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> i: Prims.nat -> msg: Vale.PPC64LE.Decls.va_operand_vec_opr -> in_b: Vale.PPC64LE.Memory.buffer128 -> offset: Prims.nat -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 67, "start_col": 68, "start_line": 52 }
Prims.Tot
val va_code_Loop_rounds_16_59_a : i:nat -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ()))))))
val va_code_Loop_rounds_16_59_a : i:nat -> Tot va_code let va_code_Loop_rounds_16_59_a i =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ()))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_16_59_a : i:nat -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
{ "end_col": 67, "end_line": 1813, "start_col": 2, "start_line": 1807 }
Prims.Tot
val va_codegen_success_Loop_rounds_16_63_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ()))))))
val va_codegen_success_Loop_rounds_16_63_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> Tot va_pbool let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 =
false
null
false
(va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26) ) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ()))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.PPC64LE.InsVector.va_codegen_success_SHA256_sigma0", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.InsVector.va_codegen_success_Vadduwm", "Vale.PPC64LE.InsVector.va_codegen_success_SHA256_sigma1", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_16_63_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_63_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg0: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg1: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg2: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg3: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 22, "end_line": 219, "start_col": 2, "start_line": 211 }
Prims.Ghost
val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_mod_vec_opr", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_update_operand_vec_opr", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_1_15_shift_body", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_1_15_shift_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg0: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg1: Vale.PPC64LE.Decls.va_operand_vec_opr -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 190, "start_col": 73, "start_line": 183 }
Prims.Tot
val va_quick_Loop_round_0_61_body (i: nat) (k_b: buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b))
val va_quick_Loop_round_0_61_body (i: nat) (k_b: buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) let va_quick_Loop_round_0_61_body (i: nat) (k_b: buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) =
false
null
false
(va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.PPC64LE.QuickCode.va_QProc", "Prims.unit", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_reg", "Prims.Nil", "Vale.SHA.PPC64LE.Rounds.Core.va_wp_Loop_round_0_61_body", "Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_round_0_61_body", "Vale.PPC64LE.QuickCode.va_quickCode" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_quick_Loop_round_0_61_body (i: nat) (k_b: buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_round_0_61_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body i)
{ "end_col": 79, "end_line": 931, "start_col": 2, "start_line": 930 }
Prims.Tot
val va_code_Loop_rounds_0_59_d : i:nat -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ()))))))))))
val va_code_Loop_rounds_0_59_d : i:nat -> Tot va_code let va_code_Loop_rounds_0_59_d i =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))) ))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_0_59_d : i:nat -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_d
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
{ "end_col": 98, "end_line": 1349, "start_col": 2, "start_line": 1336 }
Prims.Tot
val va_code_Loop_rounds_16_59_c : i:nat -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ()))))))
val va_code_Loop_rounds_16_59_c : i:nat -> Tot va_code let va_code_Loop_rounds_16_59_c i =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ()))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_16_59_c : i:nat -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_c
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
{ "end_col": 67, "end_line": 1971, "start_col": 2, "start_line": 1965 }
Prims.Tot
val va_quick_Loop_rounds_0_63_body (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec: va_operand_vec_opr) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig))
val va_quick_Loop_rounds_0_63_body (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec: va_operand_vec_opr) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) let va_quick_Loop_rounds_0_63_body (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec: va_operand_vec_opr) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) =
false
null
false
(va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([ va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec ]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.QuickCode.va_QProc", "Prims.unit", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_mod_vec_opr", "Prims.Nil", "Vale.SHA.PPC64LE.Rounds.Core.va_wp_Loop_rounds_0_63_body", "Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_0_63_body", "Vale.PPC64LE.QuickCode.va_quickCode" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_quick_Loop_rounds_0_63_body (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec: va_operand_vec_opr) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_0_63_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg: Vale.PPC64LE.Decls.va_operand_vec_opr -> a_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> b_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> c_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> d_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> e_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> f_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> g_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> h_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)
{ "end_col": 37, "end_line": 763, "start_col": 2, "start_line": 759 }
Prims.Tot
val va_codegen_success_Loop_rounds_0_59_a : i:nat -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ())))))))))
val va_codegen_success_Loop_rounds_0_59_a : i:nat -> Tot va_pbool let va_codegen_success_Loop_rounds_0_59_a i =
false
null
false
(va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) ) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ())))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_round_0_61_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_0_59_a : i:nat -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_59_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 75, "end_line": 969, "start_col": 2, "start_line": 954 }
Prims.Ghost
val va_wpProof_Loop_rounds_13_15 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_13_15 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_13_15 ()) ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_13_15 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_13_15 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_13_15 ()) ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_13_15 block va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_13_15", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_13_15" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_13_15 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_13_15 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_13_15 ()) ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_13_15
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1800, "start_col": 51, "start_line": 1793 }
Prims.Ghost
val va_wpProof_Loop_rounds_3_7_11_body : i:nat -> msg:va_operand_vec_opr -> in_b:buffer128 -> offset:nat -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_3_7_11_body i msg) ([va_Mod_reg 4; va_mod_vec_opr msg]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_3_7_11_body : i:nat -> msg:va_operand_vec_opr -> in_b:buffer128 -> offset:nat -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_3_7_11_body i msg) ([va_Mod_reg 4; va_mod_vec_opr msg]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Memory.buffer128", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_reg", "Vale.PPC64LE.QuickCode.va_mod_vec_opr", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_reg", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_update_operand_vec_opr", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_3_7_11_body", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_3_7_11_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_3_7_11_body : i:nat -> msg:va_operand_vec_opr -> in_b:buffer128 -> offset:nat -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_3_7_11_body i msg) ([va_Mod_reg 4; va_mod_vec_opr msg]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_3_7_11_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg: Vale.PPC64LE.Decls.va_operand_vec_opr -> in_b: Vale.PPC64LE.Memory.buffer128 -> offset: Prims.nat -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 79, "start_col": 69, "start_line": 71 }
Prims.Ghost
val va_wpProof_Loop_rounds_16_59_d : i:nat -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_59_d i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_d i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_16_59_d i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_d (va_code_Loop_rounds_16_59_d i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_vec 0 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_16_59_d : i:nat -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_59_d i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_d i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_16_59_d i block va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_16_59_d (va_code_Loop_rounds_16_59_d i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_vec 0 va_sM (va_update_ok va_sM va_s0)))))) )); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0 ]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_59_d", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_d" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_c va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_c va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 703 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 725 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 9 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 10 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 11 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 12 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_c i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_c (va_code_Loop_rounds_16_59_c i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 12 va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_d i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_d (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 757 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 758 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 759 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 760 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_d va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_d va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 733 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 755 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_16_59_d : i:nat -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_59_d i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_d i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_16_59_d
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 2116, "start_col": 55, "start_line": 2107 }
Prims.Tot
val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ())))))))))))))))
val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec =
false
null
false
(va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ())))))))))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.PPC64LE.InsVector.va_code_Vadduwm", "Vale.PPC64LE.InsVector.va_code_Vsel", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.op_disEquality", "Prims.int", "Vale.PPC64LE.Decls.va_CNil", "Prims.bool", "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.InsVector.va_code_SHA256_Sigma1", "Vale.PPC64LE.InsVector.va_code_Vxor", "Vale.PPC64LE.InsVector.va_code_SHA256_Sigma0", "Prims.op_Equality" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg: Vale.PPC64LE.Decls.va_operand_vec_opr -> a_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> b_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> c_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> d_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> e_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> f_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> g_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> h_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> Vale.PPC64LE.Decls.va_code
{ "end_col": 80, "end_line": 297, "start_col": 2, "start_line": 287 }
Prims.Ghost
val va_wpProof_Loop_rounds_0_59_a : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_a i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_0_59_a : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_a i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)) )))))))))))); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6 ]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_reg", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_reg", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_0_59_a", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_a" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_0_59_a : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_a i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_0_59_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1063, "start_col": 68, "start_line": 1051 }
Prims.Ghost
val va_wpProof_Loop_rounds_0_59_d : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_d i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_0_59_d : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_d i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)) )))))))))))); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6 ]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_reg", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_reg", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_0_59_d", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_d" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_0_59_d : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_d i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_0_59_d
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1462, "start_col": 68, "start_line": 1450 }
Prims.Tot
val va_qcode_Loop_rounds_1_15_shift_body (va_mods: va_mods_t) (i: nat) (msg0 msg1: vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))
val va_qcode_Loop_rounds_1_15_shift_body (va_mods: va_mods_t) (i: nat) (msg0 msg1: vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) let va_qcode_Loop_rounds_1_15_shift_body (va_mods: va_mods_t) (i: nat) (msg0 msg1: vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s: va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s: va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s: va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s: va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s: va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s: va_state) -> va_QEmpty (())))) (fun (va_s: va_state) va_g -> va_QEmpty (()))))) (fun (va_s: va_state) va_g -> va_QEmpty (()))))) (fun (va_s: va_state) va_g -> va_QEmpty (()))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.PPC64LE.Decls.vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.QuickCodes.if_code", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Vale.PPC64LE.QuickCodes.block", "Vale.PPC64LE.InsVector.va_code_Vsldoi", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QBind", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.PPC64LE.QuickCodes.va_qInlineIf", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.InsVector.va_quick_Vsldoi", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_1_15_shift_body (va_mods: va_mods_t) (i: nat) (msg0 msg1: vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_1_15_shift_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> msg0: Vale.PPC64LE.Decls.vec_opr -> msg1: Vale.PPC64LE.Decls.vec_opr -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body i msg0 msg1)
{ "end_col": 69, "end_line": 126, "start_col": 2, "start_line": 107 }
Prims.Ghost
val va_lemma_Loop_rounds_60_63_a : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_60_63_a ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 0 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 48) ((va_get_vec 6 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 54)) ((va_get_vec 7 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 55)) ((va_get_vec 8 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 56)) ((va_get_vec 11 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 59)) ((va_get_vec 12 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 60)) ((va_get_vec 13 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 45)) ((va_get_vec 14 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 46)) ((va_get_vec 15 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 47))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 61) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 62)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 63) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_rounds_60_63_a va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_a va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_a ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 763 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 780 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 61) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 62)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 63))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_rounds_60_63_a : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_60_63_a ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 0 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 48) ((va_get_vec 6 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 54)) ((va_get_vec 7 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 55)) ((va_get_vec 8 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 56)) ((va_get_vec 11 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 59)) ((va_get_vec 12 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 60)) ((va_get_vec 13 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 45)) ((va_get_vec 14 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 46)) ((va_get_vec 15 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 47))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 61) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 62)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 63) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0)))))))) let va_lemma_Loop_rounds_60_63_a va_b0 va_s0 block =
false
null
false
let va_mods:va_mods_t = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_a va_mods block in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_a ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 763 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 780 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 61) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 62)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 63))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok ]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_60_63_a", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_get_vec", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_60_63_a" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_c va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_c va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 703 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 725 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 9 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 10 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 11 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 12 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_c i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_c (va_code_Loop_rounds_16_59_c i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 12 va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_d i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_d (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 757 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 758 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 759 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 760 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_d va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_d va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 733 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 755 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_d i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_d (va_code_Loop_rounds_16_59_d i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_vec 0 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_a () = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_a () = (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_a (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_60_63_a ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 782 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 783 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 784 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QEmpty (()))))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_rounds_60_63_a : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_60_63_a ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 0 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 48) ((va_get_vec 6 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 54)) ((va_get_vec 7 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 55)) ((va_get_vec 8 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 56)) ((va_get_vec 11 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 59)) ((va_get_vec 12 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 60)) ((va_get_vec 13 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 45)) ((va_get_vec 14 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 46)) ((va_get_vec 15 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 47))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 61) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 62)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 63) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_60_63_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 2168, "start_col": 52, "start_line": 2153 }
Prims.Ghost
val va_wpProof_Loop_rounds_1_3 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_3 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_3 ()) ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_1_3 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_3 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_3 ()) ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_1_3 block va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_1_3", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_3" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_1_3 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_3 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_3 ()) ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_1_3
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1623, "start_col": 49, "start_line": 1616 }
Prims.Tot
val va_code_Loop_round_0_61_body : i:nat -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ())))
val va_code_Loop_round_0_61_body : i:nat -> Tot va_code let va_code_Loop_round_0_61_body i =
false
null
false
(va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ())))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Vale.PPC64LE.InsVector.va_code_Load128_word4_buffer", "Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.Arch.HeapTypes_s.Secret", "Vale.PPC64LE.InsBasic.va_code_AddImm", "Vale.PPC64LE.Decls.va_CNil", "Prims.bool", "Vale.PPC64LE.InsVector.va_code_Vsldoi", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_round_0_61_body : i:nat -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
{ "end_col": 9, "end_line": 775, "start_col": 2, "start_line": 770 }
Prims.Tot
val va_qcode_Loop_round_0_61_body (va_mods: va_mods_t) (i: nat) (k_b: buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))
val va_qcode_Loop_round_0_61_body (va_mods: va_mods_t) (i: nat) (k_b: buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) let va_qcode_Loop_round_0_61_body (va_mods: va_mods_t) (i: nat) (k_b: buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s: va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s: va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s: va_state) va_g -> va_QEmpty (()))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.QuickCodes.if_code", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Vale.PPC64LE.QuickCodes.block", "Vale.PPC64LE.InsVector.va_code_Load128_word4_buffer", "Vale.PPC64LE.Decls.va_op_heaplet_mem_heaplet", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_op_reg_opr_reg", "Vale.Arch.HeapTypes_s.Secret", "Vale.PPC64LE.InsBasic.va_code_AddImm", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.InsVector.va_code_Vsldoi", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QBind", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.PPC64LE.QuickCodes.va_qInlineIf", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.InsVector.va_quick_Load128_word4_buffer", "Prims.op_Division", "Prims.op_Addition", "Vale.PPC64LE.InsBasic.va_quick_AddImm", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.InsVector.va_quick_Vsldoi", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_round_0_61_body (va_mods: va_mods_t) (i: nat) (k_b: buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_round_0_61_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body i)
{ "end_col": 70, "end_line": 802, "start_col": 2, "start_line": 790 }
Prims.Tot
val va_qcode_Loop_rounds_16_59_a (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (())))))))
val va_qcode_Loop_rounds_16_59_a (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) let va_qcode_Loop_rounds_16_59_a (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (())))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_16_63_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_a" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_16_59_a (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_59_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_a i)
{ "end_col": 77, "end_line": 1848, "start_col": 2, "start_line": 1836 }
Prims.Ghost
val va_lemma_Loop_rounds_1_3 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_3 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 0 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 0 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 0 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3) /\ va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_rounds_1_3 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_3 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 0 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 0 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 0 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3) /\ va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))) let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block =
false
null
false
let va_mods:va_mods_t = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_3", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_get_vec", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_1_3" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (()))))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_rounds_1_3 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_3 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 0 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 0 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 0 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3) /\ va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_1_3
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 1612, "start_col": 48, "start_line": 1599 }
Prims.Ghost
val va_lemma_Loop_rounds_5_7 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_5_7 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 4 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 4 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 4 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7) /\ va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_rounds_5_7 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_5_7 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 4 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 4 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 4 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7) /\ va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))) let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block =
false
null
false
let va_mods:va_mods_t = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_5_7", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_get_vec", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_5_7" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (()))))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_rounds_5_7 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_5_7 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 4 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 4 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 4 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7) /\ va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_5_7
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 1671, "start_col": 48, "start_line": 1658 }
Prims.Tot
val va_qcode_Loop_rounds_0_59_b (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (())))))))))))
val va_qcode_Loop_rounds_0_59_b (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) let va_qcode_Loop_rounds_0_59_b (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (())))))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Prims.op_Addition", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_0_63_body", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_round_0_61_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_b" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_0_59_b (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_0_59_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_b i)
{ "end_col": 73, "end_line": 1135, "start_col": 2, "start_line": 1107 }
Prims.Ghost
val va_wpProof_Loop_rounds_16_63_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_16_63_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))) )); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_mod_vec_opr", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_update_operand_vec_opr", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_63_body", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_16_63_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_16_63_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg0: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg1: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg2: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg3: Vale.PPC64LE.Decls.va_operand_vec_opr -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 276, "start_col": 78, "start_line": 268 }
Prims.Tot
val va_wp_Loop_rounds_1_15_shift_body (i: nat) (msg0 msg1: va_operand_vec_opr) (block: block_w) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (())))
val va_wp_Loop_rounds_1_15_shift_body (i: nat) (msg0 msg1: va_operand_vec_opr) (block: block_w) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 let va_wp_Loop_rounds_1_15_shift_body (i: nat) (msg0 msg1: va_operand_vec_opr) (block: block_w) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
false
null
false
(va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0: va_value_vec_opr). let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (())))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Prims.l_and", "Vale.PPC64LE.Decls.va_is_dst_vec_opr", "Vale.PPC64LE.Decls.va_is_src_vec_opr", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.l_not", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "Prims.op_Subtraction", "Prims.l_imp", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi2", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_eval_vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Prims.l_Forall", "Vale.PPC64LE.Decls.va_value_vec_opr", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.Decls.va_upd_operand_vec_opr" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr)
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wp_Loop_rounds_1_15_shift_body (i: nat) (msg0 msg1: va_operand_vec_opr) (block: block_w) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wp_Loop_rounds_1_15_shift_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg0: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg1: Vale.PPC64LE.Decls.va_operand_vec_opr -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
{ "end_col": 72, "end_line": 173, "start_col": 2, "start_line": 163 }
Prims.Tot
val va_wp_Loop_round_0_61_body (i: nat) (k_b: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (())))
val va_wp_Loop_round_0_61_body (i: nat) (k_b: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 let va_wp_Loop_round_0_61_body (i: nat) (k_b: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
false
null
false
(va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6: nat64) (va_x_v24: quad32). let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (())))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Prims.l_and", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.l_imp", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "Vale.Def.Types_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.PPC64LE.Decls.va_get_vec", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Vale.Def.Words_s.__proj__Mkfour__item__hi2", "Vale.PPC64LE.Decls.validSrcAddrsOffset128", "Vale.PPC64LE.Decls.va_get_mem_heaplet", "Vale.PPC64LE.Decls.va_get_reg", "Prims.op_Division", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_get_mem_layout", "Vale.Arch.HeapTypes_s.Secret", "Vale.PPC64LE.Machine_s.pow2_64", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Types_s.quad32", "Vale.PPC64LE.Decls.buffer128_read", "Prims.l_Forall", "Vale.PPC64LE.Memory.nat64", "Vale.PPC64LE.Memory.quad32", "Vale.PPC64LE.Machine_s.nat64", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.Decls.va_upd_vec", "Vale.PPC64LE.Decls.va_upd_reg" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit ->
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wp_Loop_round_0_61_body (i: nat) (k_b: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wp_Loop_round_0_61_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
{ "end_col": 21, "end_line": 908, "start_col": 2, "start_line": 878 }
Prims.Ghost
val va_wpProof_Loop_rounds_0_59_c : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_c i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_0_59_c : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_c i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)) )))))))))))); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6 ]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_reg", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_reg", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_0_59_c", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_c" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_0_59_c : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_c i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_0_59_c
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1329, "start_col": 68, "start_line": 1317 }
Prims.Ghost
val va_lemma_Loop_rounds_9_11 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_9_11 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 8 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 8 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 8 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11) /\ va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_rounds_9_11 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_9_11 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 8 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 8 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 8 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11) /\ va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))) let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block =
false
null
false
let va_mods:va_mods_t = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_9_11", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_get_vec", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_9_11" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (()))))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_rounds_9_11 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_9_11 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 8 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 8 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 8 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11) /\ va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_9_11
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 1730, "start_col": 49, "start_line": 1717 }
Prims.Ghost
val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec ]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_mod_vec_opr", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_update_operand_vec_opr", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_0_63_body", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"]
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_0_63_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg: Vale.PPC64LE.Decls.va_operand_vec_opr -> a_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> b_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> c_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> d_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> e_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> f_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> g_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> h_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 751, "start_col": 30, "start_line": 740 }
Prims.Ghost
val va_lemma_Loop_rounds_16_59_d : va_b0:va_code -> va_s0:va_state -> i:nat -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_16_59_d i) va_s0 /\ va_get_ok va_s0 /\ (l_or (i == 28) (i == 44) /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 0 va_s0).hi3 == ws_opaque block (i - 12)) ((va_get_vec 1 va_s0).hi3 == ws_opaque block (i - 11))) ((va_get_vec 6 va_s0).hi3 == ws_opaque block (i - 6))) ((va_get_vec 7 va_s0).hi3 == ws_opaque block (i - 5))) ((va_get_vec 8 va_s0).hi3 == ws_opaque block (i - 4))) ((va_get_vec 9 va_s0).hi3 == ws_opaque block (i - 3))) ((va_get_vec 11 va_s0).hi3 == ws_opaque block (i - 1))) ((va_get_vec 12 va_s0).hi3 == ws_opaque block i)) ((va_get_vec 13 va_s0).hi3 == ws_opaque block (i - 15))) ((va_get_vec 14 va_s0).hi3 == ws_opaque block (i - 14))) ((va_get_vec 15 va_s0).hi3 == ws_opaque block (i - 13))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_vec 0 va_sM (va_update_ok va_sM va_s0)))))))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_rounds_16_59_d va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_d va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 733 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 755 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_rounds_16_59_d : va_b0:va_code -> va_s0:va_state -> i:nat -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_16_59_d i) va_s0 /\ va_get_ok va_s0 /\ (l_or (i == 28) (i == 44) /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 0 va_s0).hi3 == ws_opaque block (i - 12)) ((va_get_vec 1 va_s0).hi3 == ws_opaque block (i - 11))) ((va_get_vec 6 va_s0).hi3 == ws_opaque block (i - 6))) ((va_get_vec 7 va_s0).hi3 == ws_opaque block (i - 5))) ((va_get_vec 8 va_s0).hi3 == ws_opaque block (i - 4))) ((va_get_vec 9 va_s0).hi3 == ws_opaque block (i - 3))) ((va_get_vec 11 va_s0).hi3 == ws_opaque block (i - 1))) ((va_get_vec 12 va_s0).hi3 == ws_opaque block i)) ((va_get_vec 13 va_s0).hi3 == ws_opaque block (i - 15))) ((va_get_vec 14 va_s0).hi3 == ws_opaque block (i - 14))) ((va_get_vec 15 va_s0).hi3 == ws_opaque block (i - 13))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_vec 0 va_sM (va_update_ok va_sM va_s0))))))))) let va_lemma_Loop_rounds_16_59_d va_b0 va_s0 i block =
false
null
false
let va_mods:va_mods_t = [ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok ] in let va_qc = va_qcode_Loop_rounds_16_59_d va_mods i block in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 733 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 755 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 0; va_Mod_ok ]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Prims.nat", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_d", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_get_vec", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Prims.op_Addition", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_59_d" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_c va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_c va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 703 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 725 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 9 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 10 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 11 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 12 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_c i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_c (va_code_Loop_rounds_16_59_c i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 12 va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_d i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_d (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 757 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 758 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 759 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 760 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14) block) (va_QEmpty (())))))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_rounds_16_59_d : va_b0:va_code -> va_s0:va_state -> i:nat -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_16_59_d i) va_s0 /\ va_get_ok va_s0 /\ (l_or (i == 28) (i == 44) /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 0 va_s0).hi3 == ws_opaque block (i - 12)) ((va_get_vec 1 va_s0).hi3 == ws_opaque block (i - 11))) ((va_get_vec 6 va_s0).hi3 == ws_opaque block (i - 6))) ((va_get_vec 7 va_s0).hi3 == ws_opaque block (i - 5))) ((va_get_vec 8 va_s0).hi3 == ws_opaque block (i - 4))) ((va_get_vec 9 va_s0).hi3 == ws_opaque block (i - 3))) ((va_get_vec 11 va_s0).hi3 == ws_opaque block (i - 1))) ((va_get_vec 12 va_s0).hi3 == ws_opaque block i)) ((va_get_vec 13 va_s0).hi3 == ws_opaque block (i - 15))) ((va_get_vec 14 va_s0).hi3 == ws_opaque block (i - 14))) ((va_get_vec 15 va_s0).hi3 == ws_opaque block (i - 13))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and (l_and ((va_get_vec 0 va_sM).hi3 == ws_opaque block (i + 4)) ((va_get_vec 13 va_sM).hi3 == ws_opaque block (i + 1))) ((va_get_vec 14 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 15 va_sM).hi3 == ws_opaque block (i + 3)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_vec 0 va_sM (va_update_ok va_sM va_s0)))))))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_59_d
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> i: Prims.nat -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 2103, "start_col": 54, "start_line": 2088 }
Prims.Tot
val va_qcode_Loop_rounds_9_11 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ()))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (()))))))
val va_qcode_Loop_rounds_9_11 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) let va_qcode_Loop_rounds_9_11 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (()))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_9_11" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_9_11 (va_mods: va_mods_t) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ()))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_9_11
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_9_11 ())
{ "end_col": 24, "end_line": 1714, "start_col": 2, "start_line": 1705 }
Prims.Tot
val va_code_Loop_rounds_60_63_b : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ()))))))))
val va_code_Loop_rounds_60_63_b : va_dummy:unit -> Tot va_code let va_code_Loop_rounds_60_63_b () =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ()))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_60_63_b : va_dummy:unit -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_60_63_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 93, "end_line": 1481, "start_col": 2, "start_line": 1469 }
Prims.Tot
val va_quick_Loop_rounds_1_15_shift_body (i: nat) (msg0 msg1: va_operand_vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block))
val va_quick_Loop_rounds_1_15_shift_body (i: nat) (msg0 msg1: va_operand_vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) let va_quick_Loop_rounds_1_15_shift_body (i: nat) (msg0 msg1: va_operand_vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) =
false
null
false
(va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCode.va_QProc", "Prims.unit", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_mod_vec_opr", "Prims.Nil", "Vale.SHA.PPC64LE.Rounds.Core.va_wp_Loop_rounds_1_15_shift_body", "Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.QuickCode.va_quickCode" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_quick_Loop_rounds_1_15_shift_body (i: nat) (msg0 msg1: va_operand_vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_1_15_shift_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg0: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg1: Vale.PPC64LE.Decls.va_operand_vec_opr -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body i msg0 msg1)
{ "end_col": 21, "end_line": 198, "start_col": 2, "start_line": 196 }
Prims.Tot
val va_code_Loop_rounds_1_3 : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ())))))
val va_code_Loop_rounds_1_3 : va_dummy:unit -> Tot va_code let va_code_Loop_rounds_1_3 () =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) ) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ())))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_1_3 : va_dummy:unit -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_3
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 43, "end_line": 1574, "start_col": 2, "start_line": 1571 }
Prims.Tot
val va_code_Loop_rounds_16_59_d : i:nat -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_16_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ()))))))
val va_code_Loop_rounds_16_59_d : i:nat -> Tot va_code let va_code_Loop_rounds_16_59_d i =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ()))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_c va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_c va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 703 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 725 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 9 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 10 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 11 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 12 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_c i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_c (va_code_Loop_rounds_16_59_c i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 12 va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_d [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_16_59_d : i:nat -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_d
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
{ "end_col": 67, "end_line": 2050, "start_col": 2, "start_line": 2044 }
Prims.Ghost
val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block =
false
null
false
let va_mods:va_mods_t = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Vale.PPC64LE.QuickCode.va_mod_vec_opr", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_eval_vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_1_15_shift_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_1_15_shift_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> i: Prims.nat -> msg0: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg1: Vale.PPC64LE.Decls.va_operand_vec_opr -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 158, "start_col": 72, "start_line": 146 }
Prims.Tot
val va_code_Loop_rounds_13_15 : va_dummy:unit -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ())))))
val va_code_Loop_rounds_13_15 : va_dummy:unit -> Tot va_code let va_code_Loop_rounds_13_15 () =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ())))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_13_15 : va_dummy:unit -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_13_15
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code
{ "end_col": 67, "end_line": 1751, "start_col": 2, "start_line": 1748 }
Prims.Tot
val va_codegen_success_Loop_rounds_9_11 : va_dummy:unit -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ()))))
val va_codegen_success_Loop_rounds_9_11 : va_dummy:unit -> Tot va_pbool let va_codegen_success_Loop_rounds_9_11 () =
false
null
false
(va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ()))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.unit", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_1_15_shift_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_9_11 : va_dummy:unit -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_9_11
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 24, "end_line": 1700, "start_col": 2, "start_line": 1696 }
Prims.Tot
val va_code_Loop_rounds_0_59_a : i:nat -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ()))))))))))
val va_code_Loop_rounds_0_59_a : i:nat -> Tot va_code let va_code_Loop_rounds_0_59_a i =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))) ))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_0_59_a : i:nat -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
{ "end_col": 98, "end_line": 950, "start_col": 2, "start_line": 937 }
Prims.Tot
val va_code_Loop_rounds_0_59_b : i:nat -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ()))))))))))
val va_code_Loop_rounds_0_59_b : i:nat -> Tot va_code let va_code_Loop_rounds_0_59_b i =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))) ))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_0_59_b : i:nat -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
{ "end_col": 98, "end_line": 1083, "start_col": 2, "start_line": 1070 }
Prims.Ghost
val va_lemma_Loop_rounds_16_59_a : va_b0:va_code -> va_s0:va_state -> i:nat -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_16_59_a i) va_s0 /\ va_get_ok va_s0 /\ (l_or (l_or (i == 16) (i == 32)) (i == 48) /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 0 va_s0).hi3 == ws_opaque block i) ((va_get_vec 1 va_s0).hi3 == ws_opaque block (i - 15))) ((va_get_vec 2 va_s0).hi3 == ws_opaque block (i - 14))) ((va_get_vec 3 va_s0).hi3 == ws_opaque block (i - 13))) ((va_get_vec 4 va_s0).hi3 == ws_opaque block (i - 12))) ((va_get_vec 5 va_s0).hi3 == ws_opaque block (i - 11))) ((va_get_vec 10 va_s0).hi3 == ws_opaque block (i - 6))) ((va_get_vec 11 va_s0).hi3 == ws_opaque block (i - 5))) ((va_get_vec 12 va_s0).hi3 == ws_opaque block (i - 4))) ((va_get_vec 13 va_s0).hi3 == ws_opaque block (i - 3))) ((va_get_vec 15 va_s0).hi3 == ws_opaque block (i - 1))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_rounds_16_59_a : va_b0:va_code -> va_s0:va_state -> i:nat -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_16_59_a i) va_s0 /\ va_get_ok va_s0 /\ (l_or (l_or (i == 16) (i == 32)) (i == 48) /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 0 va_s0).hi3 == ws_opaque block i) ((va_get_vec 1 va_s0).hi3 == ws_opaque block (i - 15))) ((va_get_vec 2 va_s0).hi3 == ws_opaque block (i - 14))) ((va_get_vec 3 va_s0).hi3 == ws_opaque block (i - 13))) ((va_get_vec 4 va_s0).hi3 == ws_opaque block (i - 12))) ((va_get_vec 5 va_s0).hi3 == ws_opaque block (i - 11))) ((va_get_vec 10 va_s0).hi3 == ws_opaque block (i - 6))) ((va_get_vec 11 va_s0).hi3 == ws_opaque block (i - 5))) ((va_get_vec 12 va_s0).hi3 == ws_opaque block (i - 4))) ((va_get_vec 13 va_s0).hi3 == ws_opaque block (i - 3))) ((va_get_vec 15 va_s0).hi3 == ws_opaque block (i - 1))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))))))) let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block =
false
null
false
let va_mods:va_mods_t = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok ]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Prims.nat", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_a", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_get_vec", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Prims.op_Addition", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_59_a" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (())))))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_rounds_16_59_a : va_b0:va_code -> va_s0:va_state -> i:nat -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_16_59_a i) va_s0 /\ va_get_ok va_s0 /\ (l_or (l_or (i == 16) (i == 32)) (i == 48) /\ l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 0 va_s0).hi3 == ws_opaque block i) ((va_get_vec 1 va_s0).hi3 == ws_opaque block (i - 15))) ((va_get_vec 2 va_s0).hi3 == ws_opaque block (i - 14))) ((va_get_vec 3 va_s0).hi3 == ws_opaque block (i - 13))) ((va_get_vec 4 va_s0).hi3 == ws_opaque block (i - 12))) ((va_get_vec 5 va_s0).hi3 == ws_opaque block (i - 11))) ((va_get_vec 10 va_s0).hi3 == ws_opaque block (i - 6))) ((va_get_vec 11 va_s0).hi3 == ws_opaque block (i - 5))) ((va_get_vec 12 va_s0).hi3 == ws_opaque block (i - 4))) ((va_get_vec 13 va_s0).hi3 == ws_opaque block (i - 3))) ((va_get_vec 15 va_s0).hi3 == ws_opaque block (i - 1))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_59_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> i: Prims.nat -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 1866, "start_col": 54, "start_line": 1851 }
Prims.Tot
val va_qcode_Loop_rounds_16_63_body (va_mods: va_mods_t) (i: nat) (msg0 msg1 msg2 msg3: vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (())))))))))))
val va_qcode_Loop_rounds_16_63_body (va_mods: va_mods_t) (i: nat) (msg0 msg1 msg2 msg3: vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) let va_qcode_Loop_rounds_16_63_body (va_mods: va_mods_t) (i: nat) (msg0 msg1 msg2 msg3: vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s: va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_: unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s: va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_: unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s: va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_: unit) -> lemma_ws_opaque block i) (va_QEmpty (())))))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.PPC64LE.Decls.vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.InsVector.va_code_SHA256_sigma0", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.InsVector.va_code_Vadduwm", "Vale.PPC64LE.InsVector.va_code_SHA256_sigma1", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QBind", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.PPC64LE.InsVector.va_quick_SHA256_sigma0", "Vale.PPC64LE.QuickCodes.va_qPURE", "Prims.pure_post", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.l_Forall", "Prims.l_imp", "Prims.eq2", "Vale.Def.Words_s.nat32", "Vale.SHA2.Wrapper.sigma256_0_0", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Prims.op_Subtraction", "Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial", "Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_0_0_partial", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.InsVector.va_quick_Vadduwm", "Vale.PPC64LE.InsVector.va_quick_SHA256_sigma1", "Vale.SHA2.Wrapper.sigma256_0_1", "Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial", "Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_0_1_partial", "Prims.op_AmpAmp", "Vale.Def.Words_s.natN", "Vale.Def.Types_s.add_wrap", "Vale.SHA.PPC64LE.SHA_helpers.lemma_ws_opaque", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_16_63_body (va_mods: va_mods_t) (i: nat) (msg0 msg1 msg2 msg3: vec_opr) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_63_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> msg0: Vale.PPC64LE.Decls.vec_opr -> msg1: Vale.PPC64LE.Decls.vec_opr -> msg2: Vale.PPC64LE.Decls.vec_opr -> msg3: Vale.PPC64LE.Decls.vec_opr -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)
{ "end_col": 71, "end_line": 243, "start_col": 2, "start_line": 225 }
Prims.Ghost
val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b =
false
null
false
let va_mods:va_mods_t = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_reg", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Prims.l_imp", "Prims.int", "Prims.op_Modulus", "Vale.Def.Types_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.PPC64LE.Decls.va_get_vec", "Vale.Def.Words_s.__proj__Mkfour__item__hi2", "Vale.PPC64LE.Machine_s.nat64", "Vale.PPC64LE.Decls.va_get_reg", "Vale.Def.Words_s.__proj__Mkfour__item__lo0", "Vale.Def.Words_s.__proj__Mkfour__item__lo1", "Prims.op_Addition", "Vale.Def.Types_s.quad32", "Vale.PPC64LE.Decls.buffer128_read", "Prims.op_Division", "Vale.PPC64LE.Decls.va_get_mem_heaplet", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_round_0_61_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_round_0_61_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 873, "start_col": 53, "start_line": 840 }
Prims.Tot
val va_qcode_Loop_rounds_0_59_a (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (())))))))))))
val va_qcode_Loop_rounds_0_59_a (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) let va_qcode_Loop_rounds_0_59_a (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (())))))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Prims.op_Addition", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_0_63_body", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_round_0_61_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_a" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_0_59_a (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_0_59_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_a i)
{ "end_col": 73, "end_line": 1002, "start_col": 2, "start_line": 974 }
Prims.Tot
val va_qcode_Loop_rounds_0_59_c (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (())))))))))))
val va_qcode_Loop_rounds_0_59_c (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) let va_qcode_Loop_rounds_0_59_c (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (())))))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Prims.op_Addition", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_0_63_body", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_round_0_61_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_c" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_0_59_c (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_0_59_c
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_c i)
{ "end_col": 73, "end_line": 1268, "start_col": 2, "start_line": 1240 }
Prims.Tot
val va_code_Loop_rounds_0_59_c : i:nat -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ()))))))))))
val va_code_Loop_rounds_0_59_c : i:nat -> Tot va_code let va_code_Loop_rounds_0_59_c i =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))) ))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_0_59_c : i:nat -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_c
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
{ "end_col": 98, "end_line": 1216, "start_col": 2, "start_line": 1203 }
Prims.Ghost
val va_wpProof_Loop_rounds_9_11 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_9_11 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_9_11 ()) ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_9_11 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_9_11 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_9_11 ()) ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_9_11 block va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_9_11", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_9_11" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_9_11 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_9_11 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_9_11 ()) ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_9_11
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1741, "start_col": 50, "start_line": 1734 }
Prims.Ghost
val va_lemma_Loop_rounds_16_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_is_src_vec_opr msg2 va_s0 /\ va_is_src_vec_opr msg3 va_s0 /\ va_get_ok va_s0 /\ (l_and (16 <= i) (i < 64) /\ (let j = i `op_Modulus` 16 in msg0 == j /\ msg1 == (j + 1) `op_Modulus` 16 /\ msg2 == (j + 9) `op_Modulus` 16 /\ msg3 == (j + 14) `op_Modulus` 16 /\ (va_eval_vec_opr va_s0 msg0).hi3 == ws_opaque block (i - 16) /\ (va_eval_vec_opr va_s0 msg1).hi3 == ws_opaque block (i - 15) /\ (va_eval_vec_opr va_s0 msg2).hi3 == ws_opaque block (i - 7) /\ (va_eval_vec_opr va_s0 msg3).hi3 == ws_opaque block (i - 2))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in (va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7)) /\ (va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_rounds_16_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_is_src_vec_opr msg2 va_s0 /\ va_is_src_vec_opr msg3 va_s0 /\ va_get_ok va_s0 /\ (l_and (16 <= i) (i < 64) /\ (let j = i `op_Modulus` 16 in msg0 == j /\ msg1 == (j + 1) `op_Modulus` 16 /\ msg2 == (j + 9) `op_Modulus` 16 /\ msg3 == (j + 14) `op_Modulus` 16 /\ (va_eval_vec_opr va_s0 msg0).hi3 == ws_opaque block (i - 16) /\ (va_eval_vec_opr va_s0 msg1).hi3 == ws_opaque block (i - 15) /\ (va_eval_vec_opr va_s0 msg2).hi3 == ws_opaque block (i - 7) /\ (va_eval_vec_opr va_s0 msg3).hi3 == ws_opaque block (i - 2))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in (va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7)) /\ (va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))))) let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block =
false
null
false
let va_mods:va_mods_t = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Vale.PPC64LE.QuickCode.va_mod_vec_opr", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_eval_vec_opr", "Vale.Arch.Types.add_wrap32", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Prims.op_Subtraction", "Vale.SHA2.Wrapper.sigma256_0_1", "Vale.SHA2.Wrapper.sigma256_0_0", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_63_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (())))))))))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_rounds_16_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> msg2:va_operand_vec_opr -> msg3:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_is_src_vec_opr msg2 va_s0 /\ va_is_src_vec_opr msg3 va_s0 /\ va_get_ok va_s0 /\ (l_and (16 <= i) (i < 64) /\ (let j = i `op_Modulus` 16 in msg0 == j /\ msg1 == (j + 1) `op_Modulus` 16 /\ msg2 == (j + 9) `op_Modulus` 16 /\ msg3 == (j + 14) `op_Modulus` 16 /\ (va_eval_vec_opr va_s0 msg0).hi3 == ws_opaque block (i - 16) /\ (va_eval_vec_opr va_s0 msg1).hi3 == ws_opaque block (i - 15) /\ (va_eval_vec_opr va_s0 msg2).hi3 == ws_opaque block (i - 7) /\ (va_eval_vec_opr va_s0 msg3).hi3 == ws_opaque block (i - 2))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in (va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7)) /\ (va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_63_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> i: Prims.nat -> msg0: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg1: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg2: Vale.PPC64LE.Decls.va_operand_vec_opr -> msg3: Vale.PPC64LE.Decls.va_operand_vec_opr -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 264, "start_col": 77, "start_line": 246 }
Prims.Ghost
val va_wpProof_Loop_rounds_60_63_b : k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_60_63_b ()) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_60_63_b : k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_60_63_b ()) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)) )))))))))))); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6 ]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_reg", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_reg", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_60_63_b", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_60_63_b" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_60_63_b : k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_60_63_b ()) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_60_63_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1564, "start_col": 67, "start_line": 1552 }
Prims.Ghost
val va_lemma_Loop_rounds_13_15 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_13_15 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 12 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 12 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 12 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15) /\ va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
val va_lemma_Loop_rounds_13_15 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_13_15 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 12 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 12 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 12 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15) /\ va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0)))))) let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block =
false
null
false
let va_mods:va_mods_t = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let va_sM, va_fM, va_g = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.PPC64LE.Decls.va_code", "Vale.PPC64LE.Decls.va_state", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.fuel", "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "Vale.PPC64LE.Decls.va_fuel", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_ok", "Prims.Nil", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.list", "Vale.PPC64LE.QuickCode.__proj__QProc__item__mods", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_13_15", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.tuple3", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.va_wp_sound_code_norm", "Prims.l_and", "Vale.PPC64LE.QuickCodes.label", "Vale.PPC64LE.QuickCodes.va_range1", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_get_vec", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Vale.PPC64LE.QuickCode.quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_13_15" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (()))))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_lemma_Loop_rounds_13_15 : va_b0:va_code -> va_s0:va_state -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_13_15 ()) va_s0 /\ va_get_ok va_s0 /\ l_and (l_and ((va_get_vec 12 va_s0).hi2 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 12 va_s0).lo1 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 12 va_s0).lo0 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15) /\ va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_13_15
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_b0: Vale.PPC64LE.Decls.va_code -> va_s0: Vale.PPC64LE.Decls.va_state -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel)
{ "end_col": 16, "end_line": 1789, "start_col": 50, "start_line": 1776 }
Prims.Ghost
val va_wpProof_Loop_rounds_5_7 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_5_7 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_5_7 ()) ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_5_7 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_5_7 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_5_7 ()) ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_5_7 block va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_5_7", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_5_7" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_5_7 : block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_5_7 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_5_7 ()) ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_5_7
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1682, "start_col": 49, "start_line": 1675 }
Prims.Tot
val va_wp_Loop_rounds_0_63_body (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec: va_operand_vec_opr) (k_b: buffer128) (block: block_w) (hash_orig: hash256) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (())))
val va_wp_Loop_rounds_0_63_body (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec: va_operand_vec_opr) (k_b: buffer128) (block: block_w) (hash_orig: hash256) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 let va_wp_Loop_rounds_0_63_body (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec: va_operand_vec_opr) (k_b: buffer128) (block: block_w) (hash_orig: hash256) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
false
null
false
(va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) )) /\ (forall (va_x_d_vec: va_value_vec_opr) (va_x_g_vec: va_value_vec_opr) (va_x_h_vec: va_value_vec_opr) (va_x_v25: quad32) (va_x_v26: quad32). let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (())))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_operand_vec_opr", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Prims.l_and", "Vale.PPC64LE.Decls.va_is_src_vec_opr", "Vale.PPC64LE.Decls.va_is_dst_vec_opr", "Prims.b2t", "Vale.PPC64LE.Decls.va_get_ok", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "Prims.l_imp", "Vale.SHA.PPC64LE.SHA_helpers.k_reqs", "Vale.Def.Words_s.nat32", "Vale.Def.Words_s.__proj__Mkfour__item__hi3", "Vale.Def.Types_s.nat32", "Vale.PPC64LE.Decls.va_eval_vec_opr", "Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32", "FStar.Seq.Base.index", "Vale.SHA.PPC64LE.SHA_helpers.word", "Vale.Arch.Types.add_wrap32", "Vale.SHA.PPC64LE.SHA_helpers.k_index", "Vale.SHA.PPC64LE.SHA_helpers.ws_opaque", "Prims.l_not", "Vale.PPC64LE.Decls.va_get_vec", "Prims.op_Addition", "Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale", "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "Vale.PPC64LE.Decls.buffer128_as_seq", "Vale.PPC64LE.Decls.va_get_mem_heaplet", "Prims.l_Forall", "Vale.PPC64LE.Decls.va_value_vec_opr", "Vale.PPC64LE.Memory.quad32", "Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32", "Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64", "Vale.SHA.PPC64LE.SHA_helpers.maj_256", "Vale.SHA2.Wrapper.sigma256_1_0", "Vale.SHA2.Wrapper.sigma256_1_1", "Vale.SHA.PPC64LE.SHA_helpers.ch_256", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.Decls.va_upd_vec", "Vale.PPC64LE.Decls.va_upd_operand_vec_opr" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state)
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wp_Loop_rounds_0_63_body (i: nat) (msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec: va_operand_vec_opr) (k_b: buffer128) (block: block_w) (hash_orig: hash256) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wp_Loop_rounds_0_63_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> msg: Vale.PPC64LE.Decls.va_operand_vec_opr -> a_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> b_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> c_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> d_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> e_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> f_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> g_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> h_vec: Vale.PPC64LE.Decls.va_operand_vec_opr -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
{ "end_col": 37, "end_line": 724, "start_col": 2, "start_line": 620 }
Prims.Tot
val va_codegen_success_Loop_rounds_0_59_c : i:nat -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ())))))))))
val va_codegen_success_Loop_rounds_0_59_c : i:nat -> Tot va_pbool let va_codegen_success_Loop_rounds_0_59_c i =
false
null
false
(va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) ) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ())))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_round_0_61_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_0_59_c : i:nat -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_59_c
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 75, "end_line": 1235, "start_col": 2, "start_line": 1220 }
Prims.Ghost
val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_reg", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_reg", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_round_0_61_body", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_round_0_61_body
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 925, "start_col": 54, "start_line": 918 }
Prims.Tot
val va_codegen_success_Loop_rounds_16_59_a : i:nat -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ())))))
val va_codegen_success_Loop_rounds_16_59_a : i:nat -> Tot va_pbool let va_codegen_success_Loop_rounds_16_59_a i =
false
null
false
(va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ())))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_16_59_a : i:nat -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 21, "end_line": 1831, "start_col": 2, "start_line": 1817 }
Prims.Tot
val va_code_Loop_rounds_16_59_b : i:nat -> Tot va_code
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ()))))))
val va_code_Loop_rounds_16_59_b : i:nat -> Tot va_code let va_code_Loop_rounds_16_59_b i =
false
null
false
(va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ()))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_Block", "Vale.PPC64LE.Decls.va_CCons", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_CNil", "Vale.PPC64LE.Decls.va_code" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_code_Loop_rounds_16_59_b : i:nat -> Tot va_code
[]
Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_code
{ "end_col": 66, "end_line": 1892, "start_col": 2, "start_line": 1886 }
Prims.Tot
val va_codegen_success_Loop_rounds_16_59_b : i:nat -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ())))))
val va_codegen_success_Loop_rounds_16_59_b : i:nat -> Tot va_pbool let va_codegen_success_Loop_rounds_16_59_b i =
false
null
false
(va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ())))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_16_59_b : i:nat -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 21, "end_line": 1910, "start_col": 2, "start_line": 1896 }
Prims.Tot
val va_codegen_success_Loop_rounds_16_59_c : i:nat -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ())))))
val va_codegen_success_Loop_rounds_16_59_c : i:nat -> Tot va_pbool let va_codegen_success_Loop_rounds_16_59_c i =
false
null
false
(va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ())))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_16_59_c : i:nat -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_c
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 27, "end_line": 1989, "start_col": 2, "start_line": 1975 }
Prims.Tot
val va_qcode_Loop_rounds_0_59_d (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (())))))))))))
val va_qcode_Loop_rounds_0_59_d (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) let va_qcode_Loop_rounds_0_59_d (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (())))))))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_63_body", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_round_0_61_body", "Prims.op_Addition", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_0_63_body", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_round_0_61_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_d" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_0_59_d (va_mods: va_mods_t) (i: nat) (k_b: buffer128) (block: block_w) (hash_orig: hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_0_59_d
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_d i)
{ "end_col": 73, "end_line": 1401, "start_col": 2, "start_line": 1373 }
Prims.Tot
val va_qcode_Loop_rounds_16_59_b (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (())))))))
val va_qcode_Loop_rounds_16_59_b (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) let va_qcode_Loop_rounds_16_59_b (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (())))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_16_63_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_b" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_16_59_b (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_59_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_b i)
{ "end_col": 76, "end_line": 1927, "start_col": 2, "start_line": 1915 }
Prims.Ghost
val va_wpProof_Loop_rounds_16_59_a : i:nat -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_59_a i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_a i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_16_59_a : i:nat -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_59_a i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_a i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))))) ); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1 ]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_59_a", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_a" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_16_59_a : i:nat -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_59_a i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_a i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_16_59_a
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1879, "start_col": 55, "start_line": 1870 }
Prims.Tot
val va_qcode_Loop_rounds_16_59_c (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (())))))))
val va_qcode_Loop_rounds_16_59_c (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) let va_qcode_Loop_rounds_16_59_c (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (())))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_16_63_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_c" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_16_59_c (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_59_c
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_c i)
{ "end_col": 77, "end_line": 2006, "start_col": 2, "start_line": 1994 }
Prims.Ghost
val va_wpProof_Loop_rounds_16_59_b : i:nat -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_59_b i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_b i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_16_59_b : i:nat -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_59_b i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_b i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))))) ); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5 ]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_16_59_b", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_b" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_16_59_b : i:nat -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_59_b i block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_16_59_b i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_16_59_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1958, "start_col": 55, "start_line": 1949 }
Prims.Tot
val va_qcode_Loop_rounds_16_59_d (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_qcode_Loop_rounds_16_59_d (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 757 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 758 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 759 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 760 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14) block) (va_QEmpty (())))))))
val va_qcode_Loop_rounds_16_59_d (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i)) let va_qcode_Loop_rounds_16_59_d (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i)) =
false
null
false
(qblock va_mods (fun (va_s: va_state) -> let va_old_s:va_state = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 757 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 758 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 759 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 760 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14) block) (va_QEmpty (())))))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Vale.PPC64LE.QuickCode.va_mods_t", "Prims.nat", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.PPC64LE.QuickCodes.qblock", "Prims.unit", "Prims.Cons", "Vale.PPC64LE.Decls.va_code", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Prims.Nil", "Vale.PPC64LE.Machine_s.precode", "Vale.PPC64LE.Decls.ins", "Vale.PPC64LE.Decls.ocmp", "Vale.PPC64LE.Decls.va_state", "Vale.PPC64LE.QuickCodes.va_QSeq", "Vale.PPC64LE.QuickCodes.va_range1", "Vale.SHA.PPC64LE.Rounds.Core.va_quick_Loop_rounds_16_63_body", "Vale.PPC64LE.QuickCodes.va_QEmpty", "Vale.PPC64LE.Machine_s.state", "Vale.PPC64LE.QuickCodes.quickCodes", "Vale.PPC64LE.QuickCode.va_quickCode", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_d" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_c va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_c va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 703 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 725 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 9 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 10 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 11 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 12 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_c i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_c (va_code_Loop_rounds_16_59_c i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 12 va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_d i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_d (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_qcode_Loop_rounds_16_59_d (va_mods: va_mods_t) (i: nat) (block: block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_d i))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_qcode_Loop_rounds_16_59_d
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
va_mods: Vale.PPC64LE.QuickCode.va_mods_t -> i: Prims.nat -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit (Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_d i)
{ "end_col": 77, "end_line": 2085, "start_col": 2, "start_line": 2073 }
Prims.Ghost
val va_wpProof_Loop_rounds_0_59_b : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_b i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
val va_wpProof_Loop_rounds_0_59_b : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_b i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k =
false
null
false
let va_sM, va_f0 = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)) )))))))))))); va_lemma_norm_mods ([ va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6 ]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g)
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[]
[ "Prims.nat", "Vale.PPC64LE.Memory.buffer128", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.PPC64LE.Decls.va_state", "Prims.unit", "Vale.PPC64LE.Decls.va_fuel", "FStar.Pervasives.Native.Mktuple3", "Vale.PPC64LE.QuickCode.va_lemma_norm_mods", "Prims.Cons", "Vale.PPC64LE.QuickCode.mod_t", "Vale.PPC64LE.QuickCode.va_Mod_vec", "Vale.PPC64LE.QuickCode.va_Mod_reg", "Prims.Nil", "Prims._assert", "Vale.PPC64LE.Decls.va_state_eq", "Vale.PPC64LE.Decls.va_update_vec", "Vale.PPC64LE.Decls.va_update_reg", "Vale.PPC64LE.Decls.va_update_ok", "Vale.PPC64LE.Decls.va_lemma_upd_update", "FStar.Pervasives.Native.tuple3", "FStar.Pervasives.Native.tuple2", "Vale.PPC64LE.Machine_s.state", "Vale.SHA.PPC64LE.Rounds.Core.va_lemma_Loop_rounds_0_59_b", "Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_b" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM)
false
false
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_wpProof_Loop_rounds_0_59_b : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_59_b i) ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g))))
[]
Vale.SHA.PPC64LE.Rounds.Core.va_wpProof_Loop_rounds_0_59_b
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> k_b: Vale.PPC64LE.Memory.buffer128 -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> va_s0: Vale.PPC64LE.Decls.va_state -> va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0) -> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) * Prims.unit)
{ "end_col": 22, "end_line": 1196, "start_col": 68, "start_line": 1184 }
Prims.Tot
val va_codegen_success_Loop_rounds_16_59_d : i:nat -> Tot va_pbool
[ { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Spec.Loops", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Spec.SHA2", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.SHA_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsVector", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsStack", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsMem", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.InsBasic", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCodes", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.QuickCode", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Decls", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.State", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Stack_i", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.PPC64LE.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Types_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA.PPC64LE.Rounds", "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_codegen_success_Loop_rounds_16_59_d i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14))) (va_ttrue ())))))
val va_codegen_success_Loop_rounds_16_59_d : i:nat -> Tot va_pbool let va_codegen_success_Loop_rounds_16_59_d i =
false
null
false
(va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14))) (va_ttrue ())))))
{ "checked_file": "Vale.SHA.PPC64LE.Rounds.Core.fst.checked", "dependencies": [ "Vale.SHA2.Wrapper.fsti.checked", "Vale.SHA.PPC64LE.SHA_helpers.fsti.checked", "Vale.PPC64LE.State.fsti.checked", "Vale.PPC64LE.Stack_i.fsti.checked", "Vale.PPC64LE.QuickCodes.fsti.checked", "Vale.PPC64LE.QuickCode.fst.checked", "Vale.PPC64LE.Memory.fsti.checked", "Vale.PPC64LE.Machine_s.fst.checked", "Vale.PPC64LE.InsVector.fsti.checked", "Vale.PPC64LE.InsStack.fsti.checked", "Vale.PPC64LE.InsMem.fsti.checked", "Vale.PPC64LE.InsBasic.fsti.checked", "Vale.PPC64LE.Decls.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.Arch.HeapImpl.fsti.checked", "Spec.SHA2.fsti.checked", "Spec.Loops.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "Vale.SHA.PPC64LE.Rounds.Core.fst" }
[ "total" ]
[ "Prims.nat", "Vale.PPC64LE.Decls.va_pbool_and", "Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_63_body", "Prims.op_Addition", "Vale.PPC64LE.Decls.va_op_vec_opr_vec", "Vale.PPC64LE.Decls.va_ttrue", "Vale.PPC64LE.Decls.va_pbool" ]
[]
module Vale.SHA.PPC64LE.Rounds.Core open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Seq open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.PPC64LE.Machine_s open Vale.PPC64LE.Memory open Vale.PPC64LE.Stack_i open Vale.PPC64LE.State open Vale.PPC64LE.Decls open Vale.PPC64LE.QuickCode open Vale.PPC64LE.QuickCodes open Vale.PPC64LE.InsBasic open Vale.PPC64LE.InsMem open Vale.PPC64LE.InsStack open Vale.PPC64LE.InsVector open Vale.SHA.PPC64LE.SHA_helpers open Spec.SHA2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Loops open Vale.SHA2.Wrapper #reset-options "--z3rlimit 2000" //-- Loop_rounds_3_7_11_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_3_7_11_body i msg = (va_Block (va_CCons (va_code_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_CNil ())))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_3_7_11_body i msg = (va_pbool_and (va_codegen_success_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_ttrue ()))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_3_7_11_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (in_b:buffer128) (offset:nat) : (va_quickCode unit (va_code_Loop_rounds_3_7_11_body i msg)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 79 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_byte16_buffer (va_op_heaplet_mem_heaplet 0) msg (va_op_reg_opr_reg 4) Secret in_b offset) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 80 column 11 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 4) (va_op_reg_opr_reg 4) 16) (va_QEmpty (()))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_3_7_11_body va_b0 va_s0 i msg in_b offset = let (va_mods:va_mods_t) = [va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg] in let va_qc = va_qcode_Loop_rounds_3_7_11_body va_mods i msg in_b offset in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_3_7_11_body i msg) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 55 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 76 column 73 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_eval_vec_opr va_sM msg == Vale.Def.Types_s.reverse_bytes_quad32 (Vale.PPC64LE.Decls.buffer128_read in_b offset (va_get_mem_heaplet 0 va_sM))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 77 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 4 va_sM == va_get_reg 4 va_s0 + 16))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_reg 4; va_Mod_ok; va_mod_vec_opr msg]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_3_7_11_body i msg in_b offset va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_3_7_11_body (va_code_Loop_rounds_3_7_11_body i msg) va_s0 i msg in_b offset in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_reg 4 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_reg 4; va_mod_vec_opr msg]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_15_shift_body val va_code_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_Block (va_CCons (if (i `op_Modulus` 4 = 1) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 4) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 8) (va_CNil ())) else va_Block (va_CCons (if (i `op_Modulus` 4 = 3) then va_Block (va_CCons (va_code_Vsldoi msg0 msg1 msg1 12) (va_CNil ())) else va_Block (va_CNil ())) (va_CNil ()))) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_15_shift_body i msg0 msg1 = (va_pbool_and (if (i `op_Modulus` 4 = 1) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 4) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 8) (va_ttrue ()) else va_pbool_and (if (i `op_Modulus` 4 = 3) then va_pbool_and (va_codegen_success_Vsldoi msg0 msg1 msg1 12) (va_ttrue ()) else va_ttrue ()) (va_ttrue ())) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_15_shift_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 100 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 1) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 102 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 4) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 104 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 106 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 8) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QBind va_range1 "***** PRECONDITION NOT MET AT line 108 column 13 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 3) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 110 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi msg0 msg1 msg1 12) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_rounds_1_15_shift_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 /\ va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0)))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_15_shift_body va_b0 va_s0 i msg0 msg1 block = let (va_mods:va_mods_t) = [va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_1_15_shift_body va_mods i msg0 msg1 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 83 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 98 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_dst_vec_opr msg0 va_s0 /\ va_is_src_vec_opr msg1 va_s0 /\ va_get_ok va_s0 /\ l_and (l_and (0 <= i) (i < 16)) (i `op_Modulus` 4 =!= 0) /\ msg0 == i /\ msg1 == i - i `op_Modulus` 4 /\ (i `op_Modulus` 4 == 1 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi2 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 2 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo1 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (i `op_Modulus` 4 == 3 ==> Vale.Def.Words_s.__proj__Mkfour__item__lo0 (va_eval_vec_opr va_s0 msg1) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i) /\ (forall (va_x_msg0:va_value_vec_opr) . let va_sM = va_upd_operand_vec_opr msg0 va_x_msg0 va_s0 in va_get_ok va_sM /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM msg0) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_1_15_shift_body : i:nat -> msg0:va_operand_vec_opr -> msg1:va_operand_vec_opr -> block:block_w -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_15_shift_body (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) va_s0 i msg0 msg1 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))); va_lemma_norm_mods ([va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_1_15_shift_body (i:nat) (msg0:va_operand_vec_opr) (msg1:va_operand_vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_15_shift_body i msg0 msg1)) = (va_QProc (va_code_Loop_rounds_1_15_shift_body i msg0 msg1) ([va_mod_vec_opr msg0]) (va_wp_Loop_rounds_1_15_shift_body i msg0 msg1 block) (va_wpProof_Loop_rounds_1_15_shift_body i msg0 msg1 block)) //-- //-- Loop_rounds_16_63_body [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_Block (va_CCons (va_code_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_CCons (va_code_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vadduwm msg0 msg0 msg2) (va_CNil ()))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 = (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1) (va_codegen_success_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25))) (va_pbool_and (va_pbool_and (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3) (va_codegen_success_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3)) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_codegen_success_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26))) (va_pbool_and (va_pbool_and (va_codegen_success_Vadduwm msg0 msg0 msg2) (va_codegen_success_Vadduwm msg0 msg0 msg2)) (va_ttrue ())))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_63_body (va_mods:va_mods_t) (i:nat) (msg0:vec_opr) (msg1:vec_opr) (msg2:vec_opr) (msg3:vec_opr) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 145 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma0 (va_op_vec_opr_vec 25) msg1 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 146 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_0_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 147 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 148 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_sigma1 (va_op_vec_opr_vec 26) msg3 i block) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 149 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_sigma_0_1_partial i block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 150 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 (va_op_vec_opr_vec 26)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 151 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm msg0 msg0 msg2) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 152 column 20 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> lemma_ws_opaque block i) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_63_body va_b0 va_s0 i msg0 msg1 msg2 msg3 block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0] in let va_qc = va_qcode_Loop_rounds_16_63_body va_mods i msg0 msg1 msg2 msg3 block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 114 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 140 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = sigma256_0_0 (ws_opaque block (i - 15)) in label va_range1 "***** POSTCONDITION NOT MET AT line 141 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = sigma256_0_1 (ws_opaque block (i - 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 142 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == add_wrap32 (add_wrap32 (add_wrap32 (ws_opaque block (i - 16)) sigma0) sigma1) (ws_opaque block (i - 7))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 143 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" ((va_eval_vec_opr va_sM msg0).hi3 == ws_opaque block i)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr msg0]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_63_body (va_code_Loop_rounds_16_63_body i msg0 msg1 msg2 msg3) va_s0 i msg0 msg1 msg2 msg3 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr msg0 va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr msg0]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_63_body val va_code_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_Block (va_CCons (va_code_Vadduwm h_vec h_vec msg) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_CCons (if op_disEquality i 63 then va_Block (va_CCons (va_code_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_CNil ())) else va_Block (va_CNil ())) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (va_code_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_CCons (va_code_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm d_vec d_vec h_vec) (va_CCons (va_code_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_CCons (va_code_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_CCons (va_code_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_CCons (if (i = 63) then va_Block (va_CNil ()) else va_Block (va_CNil ())) (va_CNil ()))))))))))))))) val va_codegen_success_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec = (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec msg) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (va_pbool_and (if op_disEquality i 63 then va_pbool_and (va_codegen_success_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_ttrue ()) else va_ttrue ()) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (va_codegen_success_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_pbool_and (va_codegen_success_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm d_vec d_vec h_vec) (va_pbool_and (va_codegen_success_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec) (va_pbool_and (va_codegen_success_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_pbool_and (va_codegen_success_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_pbool_and (if (i = 63) then va_ttrue () else va_ttrue ()) (va_ttrue ())))))))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_63_body (va_mods:va_mods_t) (i:nat) (msg:vec_opr) (a_vec:vec_opr) (b_vec:vec_opr) (c_vec:vec_opr) (d_vec:vec_opr) (e_vec:vec_opr) (f_vec:vec_opr) (g_vec:vec_opr) (h_vec:vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 227 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec msg) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 228 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) g_vec f_vec e_vec) (fun (va_s:va_state) _ -> let (va_arg53:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s e_vec) in let (va_arg52:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s g_vec) in let (va_arg51:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s f_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 229 column 17 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 va_arg51 va_arg52 va_arg53) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 230 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (op_disEquality i 63) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 232 column 16 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm g_vec g_vec (va_op_vec_opr_vec 24)) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 234 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 235 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma1 (va_op_vec_opr_vec 26) e_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg50:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg49:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg48:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 236 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial va_arg48 va_arg49 va_arg50) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 237 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 238 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vxor (va_op_vec_opr_vec 25) a_vec b_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 239 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsel (va_op_vec_opr_vec 25) b_vec c_vec (va_op_vec_opr_vec 25)) (fun (va_s:va_state) _ -> va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 240 column 22 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.Def.Types_s.quad32_xor_reveal ()) (let (va_arg47:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s c_vec) in let (va_arg46:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s b_vec) in let (va_arg45:Vale.Def.Words_s.nat32) = Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_old_s a_vec) in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 241 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 va_arg45 va_arg46 va_arg47) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 242 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm d_vec d_vec h_vec) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 243 column 18 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_SHA256_Sigma0 (va_op_vec_opr_vec 26) a_vec i block hash_orig) (fun (va_s:va_state) _ -> let (va_arg44:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg43:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg42:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 244 column 28 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_0_partial va_arg42 va_arg43 va_arg44) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 245 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 26) (va_op_vec_opr_vec 25)) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 246 column 12 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vadduwm h_vec h_vec (va_op_vec_opr_vec 26)) (fun (va_s:va_state) _ -> let (va_arg41:Vale.SHA.PPC64LE.SHA_helpers.hash256) = hash_orig in let (va_arg40:Vale.SHA.PPC64LE.SHA_helpers.block_w) = block in let (va_arg39:Vale.SHA.PPC64LE.SHA_helpers.counter) = i in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 247 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties va_arg39 va_arg40 va_arg41) (va_QBind va_range1 "***** PRECONDITION NOT MET AT line 248 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i = 63) (qblock va_mods (fun (va_s:va_state) -> let (va_arg38:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s g_vec in let (va_arg37:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s f_vec in let (va_arg36:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s e_vec in let (va_arg35:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s d_vec in let (va_arg34:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s c_vec in let (va_arg33:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s b_vec in let (va_arg32:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s a_vec in let (va_arg31:Vale.Def.Types_s.quad32) = va_eval_vec_opr va_s h_vec in let (va_arg30:Vale.SHA.PPC64LE.SHA_helpers.hash256) = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig in va_qPURE va_range1 "***** PRECONDITION NOT MET AT line 250 column 34 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (fun (_:unit) -> Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash va_arg30 va_arg31 va_arg32 va_arg33 va_arg34 va_arg35 va_arg36 va_arg37 va_arg38) (va_QEmpty (())))) (qblock va_mods (fun (va_s:va_state) -> va_QEmpty (())))) (fun (va_s:va_state) va_g -> va_QEmpty (())))))))))))))))))))))) val va_lemma_Loop_rounds_0_63_body : va_b0:va_code -> va_s0:va_state -> i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 /\ va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) /\ va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0)))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_63_body va_b0 va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec] in let va_qc = va_qcode_Loop_rounds_0_63_body va_mods i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 155 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 205 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 206 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in label va_range1 "***** POSTCONDITION NOT MET AT line 207 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in label va_range1 "***** POSTCONDITION NOT MET AT line 208 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in label va_range1 "***** POSTCONDITION NOT MET AT line 209 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in label va_range1 "***** POSTCONDITION NOT MET AT line 210 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in label va_range1 "***** POSTCONDITION NOT MET AT line 211 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in label va_range1 "***** POSTCONDITION NOT MET AT line 212 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in label va_range1 "***** POSTCONDITION NOT MET AT line 213 column 137 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1)) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 214 column 118 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 215 column 93 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 224 column 61 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 225 column 145 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)))))))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_ok; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_is_src_vec_opr msg va_s0 /\ va_is_src_vec_opr a_vec va_s0 /\ va_is_src_vec_opr b_vec va_s0 /\ va_is_src_vec_opr c_vec va_s0 /\ va_is_dst_vec_opr d_vec va_s0 /\ va_is_src_vec_opr e_vec va_s0 /\ va_is_src_vec_opr f_vec va_s0 /\ va_is_dst_vec_opr g_vec va_s0 /\ va_is_dst_vec_opr h_vec va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 64) /\ msg == i `op_Modulus` 16 /\ (i `op_Modulus` 8 == 0 ==> a_vec == 16 /\ b_vec == 17 /\ c_vec == 18 /\ d_vec == 19 /\ e_vec == 20 /\ f_vec == 21 /\ g_vec == 22 /\ h_vec == 23) /\ (i `op_Modulus` 8 == 1 ==> a_vec == 23 /\ b_vec == 16 /\ c_vec == 17 /\ d_vec == 18 /\ e_vec == 19 /\ f_vec == 20 /\ g_vec == 21 /\ h_vec == 22) /\ (i `op_Modulus` 8 == 2 ==> a_vec == 22 /\ b_vec == 23 /\ c_vec == 16 /\ d_vec == 17 /\ e_vec == 18 /\ f_vec == 19 /\ g_vec == 20 /\ h_vec == 21) /\ (i `op_Modulus` 8 == 3 ==> a_vec == 21 /\ b_vec == 22 /\ c_vec == 23 /\ d_vec == 16 /\ e_vec == 17 /\ f_vec == 18 /\ g_vec == 19 /\ h_vec == 20) /\ (i `op_Modulus` 8 == 4 ==> a_vec == 20 /\ b_vec == 21 /\ c_vec == 22 /\ d_vec == 23 /\ e_vec == 16 /\ f_vec == 17 /\ g_vec == 18 /\ h_vec == 19) /\ (i `op_Modulus` 8 == 5 ==> a_vec == 19 /\ b_vec == 20 /\ c_vec == 21 /\ d_vec == 22 /\ e_vec == 23 /\ f_vec == 16 /\ g_vec == 17 /\ h_vec == 18) /\ (i `op_Modulus` 8 == 6 ==> a_vec == 18 /\ b_vec == 19 /\ c_vec == 20 /\ d_vec == 21 /\ e_vec == 22 /\ f_vec == 23 /\ g_vec == 16 /\ h_vec == 17) /\ (i `op_Modulus` 8 == 7 ==> a_vec == 17 /\ b_vec == 18 /\ c_vec == 19 /\ d_vec == 20 /\ e_vec == 21 /\ f_vec == 22 /\ g_vec == 23 /\ h_vec == 16) /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_s0) k_b in Vale.SHA.PPC64LE.SHA_helpers.k_reqs ks /\ (let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 g_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 h_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_s0 msg) == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i /\ (i =!= 63 ==> (va_get_vec 24 va_s0).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))))) /\ (forall (va_x_d_vec:va_value_vec_opr) (va_x_g_vec:va_value_vec_opr) (va_x_h_vec:va_value_vec_opr) (va_x_v25:quad32) (va_x_v26:quad32) . let va_sM = va_upd_vec 26 va_x_v26 (va_upd_vec 25 va_x_v25 (va_upd_operand_vec_opr h_vec va_x_h_vec (va_upd_operand_vec_opr g_vec va_x_g_vec (va_upd_operand_vec_opr d_vec va_x_d_vec va_s0)))) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in let hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale i block hash_orig in let h_k = Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks i) in let ch = Vale.SHA.PPC64LE.SHA_helpers.ch_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 5)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) in let sigma1 = Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 4)) in let sigma0 = Vale.SHA2.Wrapper.sigma256_1_0 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) in let maj = Vale.SHA.PPC64LE.SHA_helpers.maj_256 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 0)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 1)) (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 2)) in let sigma0_maj = Vale.Arch.Types.add_wrap32 sigma0 maj in Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 3)) (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) /\ Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 (Vale.Arch.Types.add_wrap32 h_k (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block i)) ch) sigma1) sigma0_maj /\ (i =!= 63 ==> Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word hash 6)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1))) /\ (i =!= 63 ==> (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 1) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM a_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1)) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM b_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM c_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM d_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM e_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM f_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM g_vec) == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 1)))) (Vale.Def.Words_s.__proj__Mkfour__item__hi3 (va_eval_vec_opr va_sM h_vec) == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)))) /\ (i == 63 ==> Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_eval_vec_opr va_sM h_vec) (va_eval_vec_opr va_sM a_vec) (va_eval_vec_opr va_sM b_vec) (va_eval_vec_opr va_sM c_vec) (va_eval_vec_opr va_sM d_vec) (va_eval_vec_opr va_sM e_vec) (va_eval_vec_opr va_sM f_vec) (va_eval_vec_opr va_sM g_vec) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) ==> va_k va_sM (()))) val va_wpProof_Loop_rounds_0_63_body : i:nat -> msg:va_operand_vec_opr -> a_vec:va_operand_vec_opr -> b_vec:va_operand_vec_opr -> c_vec:va_operand_vec_opr -> d_vec:va_operand_vec_opr -> e_vec:va_operand_vec_opr -> f_vec:va_operand_vec_opr -> g_vec:va_operand_vec_opr -> h_vec:va_operand_vec_opr -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_63_body (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) va_s0 i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_ok va_sM (va_update_operand_vec_opr h_vec va_sM (va_update_operand_vec_opr g_vec va_sM (va_update_operand_vec_opr d_vec va_sM va_s0))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_rounds_0_63_body (i:nat) (msg:va_operand_vec_opr) (a_vec:va_operand_vec_opr) (b_vec:va_operand_vec_opr) (c_vec:va_operand_vec_opr) (d_vec:va_operand_vec_opr) (e_vec:va_operand_vec_opr) (f_vec:va_operand_vec_opr) (g_vec:va_operand_vec_opr) (h_vec:va_operand_vec_opr) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec)) = (va_QProc (va_code_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec) ([va_Mod_vec 26; va_Mod_vec 25; va_mod_vec_opr h_vec; va_mod_vec_opr g_vec; va_mod_vec_opr d_vec]) (va_wp_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig) (va_wpProof_Loop_rounds_0_63_body i msg a_vec b_vec c_vec d_vec e_vec f_vec g_vec h_vec k_b block hash_orig)) //-- //-- Loop_round_0_61_body val va_code_Loop_round_0_61_body : i:nat -> Tot va_code [@ "opaque_to_smt" va_qattr] let va_code_Loop_round_0_61_body i = (va_Block (va_CCons (if (i `op_Modulus` 4 = 2) then va_Block (va_CCons (va_code_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_CCons (va_code_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_CNil ()))) else va_Block (va_CCons (va_code_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_CNil ()))) (va_CNil ()))) val va_codegen_success_Loop_round_0_61_body : i:nat -> Tot va_pbool [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_round_0_61_body i = (va_pbool_and (if (i `op_Modulus` 4 = 2) then va_pbool_and (va_codegen_success_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret) (va_pbool_and (va_codegen_success_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_ttrue ())) else va_pbool_and (va_codegen_success_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_ttrue ())) (va_ttrue ())) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_round_0_61_body (va_mods:va_mods_t) (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QBind va_range1 "***** PRECONDITION NOT MET AT line 276 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_qInlineIf va_mods (i `op_Modulus` 4 = 2) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 278 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Load128_word4_buffer (va_op_heaplet_mem_heaplet 0) (va_op_vec_opr_vec 24) (va_op_reg_opr_reg 6) Secret k_b ((i + 2) `op_Division` 4)) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 279 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_AddImm (va_op_reg_opr_reg 6) (va_op_reg_opr_reg 6) 16) (va_QEmpty (()))))) (qblock va_mods (fun (va_s:va_state) -> va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 283 column 15 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Vsldoi (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) (va_op_vec_opr_vec 24) 4) (va_QEmpty (()))))) (fun (va_s:va_state) va_g -> va_QEmpty (())))) val va_lemma_Loop_round_0_61_body : va_b0:va_code -> va_s0:va_state -> i:nat -> k_b:buffer128 -> Ghost (va_state & va_fuel) (requires (va_require_total va_b0 (va_code_Loop_round_0_61_body i) va_s0 /\ va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))))) (ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) /\ va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0))))) [@"opaque_to_smt"] let va_lemma_Loop_round_0_61_body va_b0 va_s0 i k_b = let (va_mods:va_mods_t) = [va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_round_0_61_body va_mods i k_b in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_round_0_61_body i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 254 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 270 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in label va_range1 "***** POSTCONDITION NOT MET AT line 271 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 272 column 57 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 273 column 122 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 274 column 97 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@ va_qattr] let va_wp_Loop_round_0_61_body (i:nat) (k_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (l_and (0 <= i) (i < 62) /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_s0) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks) /\ (i `op_Modulus` 4 == 2 ==> Vale.PPC64LE.Decls.validSrcAddrsOffset128 (va_get_mem_heaplet 0 va_s0) (va_get_reg 6 va_s0) k_b ((i + 2) `op_Division` 4) 1 (va_get_mem_layout va_s0) Secret /\ va_get_reg 6 va_s0 + 16 < pow2_64) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_s0).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_s0).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_s0).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_s0).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks))) /\ (forall (va_x_r6:nat64) (va_x_v24:quad32) . let va_sM = va_upd_vec 24 va_x_v24 (va_upd_reg 6 va_x_r6 va_s0) in va_get_ok va_sM /\ (let ks = Vale.PPC64LE.Decls.buffer128_read k_b ((i + 2) `op_Division` 4) (va_get_mem_heaplet 0 va_sM) in (i `op_Modulus` 4 == 0 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 1 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0) /\ (i `op_Modulus` 4 == 2 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo0 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo0 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ (i `op_Modulus` 4 == 3 ==> (va_get_vec 24 va_sM).hi3 == Vale.Def.Words_s.__proj__Mkfour__item__lo1 ks /\ (va_get_vec 24 va_sM).hi2 == Vale.Def.Words_s.__proj__Mkfour__item__hi2 ks /\ (va_get_vec 24 va_sM).lo1 == Vale.Def.Words_s.__proj__Mkfour__item__hi3 ks /\ va_get_reg 6 va_sM == va_get_reg 6 va_s0)) ==> va_k va_sM (()))) val va_wpProof_Loop_round_0_61_body : i:nat -> k_b:buffer128 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0) -> Ghost (va_state & va_fuel & unit) (requires (va_t_require va_s0 /\ va_wp_Loop_round_0_61_body i k_b va_s0 va_k)) (ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) va_s0 va_k ((va_sM, va_f0, va_g)))) [@"opaque_to_smt"] let va_wpProof_Loop_round_0_61_body i k_b va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_round_0_61_body (va_code_Loop_round_0_61_body i) va_s0 i k_b in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 24 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))); va_lemma_norm_mods ([va_Mod_vec 24; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) [@ "opaque_to_smt" va_qattr] let va_quick_Loop_round_0_61_body (i:nat) (k_b:buffer128) : (va_quickCode unit (va_code_Loop_round_0_61_body i)) = (va_QProc (va_code_Loop_round_0_61_body i) ([va_Mod_vec 24; va_Mod_reg 6]) (va_wp_Loop_round_0_61_body i k_b) (va_wpProof_Loop_round_0_61_body i k_b)) //-- //-- Loop_rounds_0_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_a i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_a (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 336 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 337 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 338 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 339 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 340 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 341 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 342 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 343 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_a va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_a va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 287 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 323 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 324 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 333 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 334 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_a i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_a (va_code_Loop_rounds_0_59_a i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_b i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_b (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 395 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 396 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 397 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 398 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 399 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 400 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 401 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 402 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_b va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_b va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 346 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 382 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 383 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 392 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 393 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_b i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_b (va_code_Loop_rounds_0_59_b i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_c i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_c (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 454 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 455 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 456 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 457 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 458 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 459 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 460 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 461 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_c va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_c va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 405 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 441 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 442 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 451 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 23 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 19 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 452 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_c i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_c (va_code_Loop_rounds_0_59_c i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_0_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_0_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body i) (va_CCons (va_code_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body (i + 1)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_round_0_61_body (i + 2)) (va_CCons (va_code_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CCons (va_code_Loop_round_0_61_body (i + 3)) (va_CNil ())))))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_0_59_d i = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body i) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 1)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 2)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body (i + 3)) (va_ttrue ()))))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_0_59_d (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_0_59_d i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 513 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body i (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 514 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body i k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 515 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 516 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 1) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 517 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 518 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 2) k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 519 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 520 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body (i + 3) k_b) (va_QEmpty (()))))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_0_59_d va_b0 va_s0 i k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_0_59_d va_mods i k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_0_59_d i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 464 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ (label va_range1 "***** POSTCONDITION NOT MET AT line 500 column 29 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_reg 6 va_sM == va_get_reg 6 va_s0 + 16) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 501 column 9 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let ks = Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem_heaplet 0 va_sM) k_b in label va_range1 "***** POSTCONDITION NOT MET AT line 510 column 86 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (let next_hash = Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale (i + 4) block hash_orig in l_and (l_and (l_and (l_and (l_and (l_and (l_and ((va_get_vec 16 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 0)) ((va_get_vec 17 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 1))) ((va_get_vec 18 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 2))) ((va_get_vec 19 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 3))) ((va_get_vec 20 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 4))) ((va_get_vec 21 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 5))) ((va_get_vec 22 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 6))) ((va_get_vec 23 va_sM).hi3 == Vale.Arch.Types.add_wrap32 (Vale.SHA.PPC64LE.SHA_helpers.word_to_nat32 (FStar.Seq.Base.index #Vale.SHA.PPC64LE.SHA_helpers.word next_hash 7)) (Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 4)))) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 511 column 95 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 24 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 5)) ((va_get_vec 24 va_sM).hi2 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 6))) ((va_get_vec 24 va_sM).lo1 == Vale.SHA.PPC64LE.SHA_helpers.k_index ks (i + 7)))))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_0_59_d i k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_0_59_d (va_code_Loop_rounds_0_59_d i) va_s0 i k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_60_63_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_60_63_b () = (va_Block (va_CCons (va_code_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_CCons (va_code_Loop_round_0_61_body 60) (va_CCons (va_code_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_CCons (va_code_Loop_round_0_61_body 61) (va_CCons (va_code_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_CCons (va_code_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_CNil ())))))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_60_63_b () = (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 60) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18)) (va_pbool_and (va_codegen_success_Loop_round_0_61_body 61) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17)) (va_pbool_and (va_codegen_success_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16)) (va_ttrue ()))))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_60_63_b (va_mods:va_mods_t) (k_b:buffer128) (block:block_w) (hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_60_63_b ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 558 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 60 (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 559 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 60 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 560 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 61 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 561 column 25 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_round_0_61_body 61 k_b) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 562 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 62 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) (va_op_vec_opr_vec 17) k_b block hash_orig) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 563 column 26 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_0_63_body 63 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 17) (va_op_vec_opr_vec 18) (va_op_vec_opr_vec 19) (va_op_vec_opr_vec 20) (va_op_vec_opr_vec 21) (va_op_vec_opr_vec 22) (va_op_vec_opr_vec 23) (va_op_vec_opr_vec 16) k_b block hash_orig) (va_QEmpty (()))))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_60_63_b va_b0 va_s0 k_b block hash_orig = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_60_63_b va_mods k_b block hash_orig in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_60_63_b ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 523 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 556 column 133 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 (va_get_vec 16 va_sM) (va_get_vec 17 va_sM) (va_get_vec 18 va_sM) (va_get_vec 19 va_sM) (va_get_vec 20 va_sM) (va_get_vec 21 va_sM) (va_get_vec 22 va_sM) (va_get_vec 23 va_sM) == Vale.SHA.PPC64LE.SHA_helpers.repeat_range_vale_64 block hash_orig)) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_60_63_b k_b block hash_orig va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_60_63_b (va_code_Loop_rounds_60_63_b ()) va_s0 k_b block hash_orig in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM (va_update_vec 23 va_sM (va_update_vec 22 va_sM (va_update_vec 21 va_sM (va_update_vec 20 va_sM (va_update_vec 19 va_sM (va_update_vec 18 va_sM (va_update_vec 17 va_sM (va_update_vec 16 va_sM (va_update_reg 6 va_sM (va_update_ok va_sM va_s0)))))))))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_reg 6]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_1_3 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_1_3 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_1_3 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_1_3 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_1_3 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 580 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 1 (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 581 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 2 (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 582 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 3 (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 0) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_1_3 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_1_3 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_1_3 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 566 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 578 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 1 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 1) ((va_get_vec 2 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 2)) ((va_get_vec 3 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 3))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_1_3 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_1_3 (va_code_Loop_rounds_1_3 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_5_7 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_5_7 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_5_7 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_5_7 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_5_7 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 599 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 5 (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 600 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 6 (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 601 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 7 (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 4) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_5_7 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_5_7 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_5_7 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 585 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 597 column 38 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 5 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 5) ((va_get_vec 6 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 6)) ((va_get_vec 7 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 7))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_5_7 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_5_7 (va_code_Loop_rounds_5_7 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_9_11 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_9_11 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_9_11 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_9_11 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_9_11 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 618 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 9 (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 619 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 10 (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 620 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 11 (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 8) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_9_11 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_9_11 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_9_11 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 604 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 616 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 9 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 9) ((va_get_vec 10 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 10)) ((va_get_vec 11 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 11))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_9_11 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_9_11 (va_code_Loop_rounds_9_11 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_13_15 [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_13_15 () = (va_Block (va_CCons (va_code_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_CNil ()))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_13_15 () = (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12)) (va_pbool_and (va_codegen_success_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12)) (va_ttrue ())))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_13_15 (va_mods:va_mods_t) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_13_15 ())) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 638 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 13 (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 639 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 14 (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 12) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 640 column 32 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_1_15_shift_body 15 (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 12) block) (va_QEmpty (())))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_13_15 va_b0 va_s0 block = let (va_mods:va_mods_t) = [va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_13_15 va_mods block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_13_15 ()) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 623 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 636 column 40 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and ((va_get_vec 13 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 13) ((va_get_vec 14 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 14)) ((va_get_vec 15 va_sM).hi3 == Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block 15))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_13_15 block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_13_15 (va_code_Loop_rounds_13_15 ()) va_s0 block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 15 va_sM (va_update_vec 14 va_sM (va_update_vec 13 va_sM (va_update_ok va_sM va_s0))))); va_lemma_norm_mods ([va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_a [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_a i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_a i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_a (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_a i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 667 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 15) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 668 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 0) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 669 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 1) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 670 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 2) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_a va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_a va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_a i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 643 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 665 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 1 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 2 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 3 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 4 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_a i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_a (va_code_Loop_rounds_16_59_a i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 4 va_sM (va_update_vec 3 va_sM (va_update_vec 2 va_sM (va_update_vec 1 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 4; va_Mod_vec 3; va_Mod_vec 2; va_Mod_vec 1]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_b [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_b i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_b i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_b (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_b i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 697 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 3) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 698 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 4) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 699 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 5) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 700 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 6) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_b va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_b va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_b i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 673 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 695 column 75 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 5 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 6 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 7 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 8 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_b i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_b (va_code_Loop_rounds_16_59_b i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 8 va_sM (va_update_vec 7 va_sM (va_update_vec 6 va_sM (va_update_vec 5 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 8; va_Mod_vec 7; va_Mod_vec 6; va_Mod_vec 5]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_c [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_c i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr] let va_codegen_success_Loop_rounds_16_59_c i = (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7)) (va_codegen_success_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8)) (va_codegen_success_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9)) (va_codegen_success_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9))) (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10)) (va_codegen_success_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10))) (va_ttrue ()))))) [@ "opaque_to_smt" va_qattr] let va_qcode_Loop_rounds_16_59_c (va_mods:va_mods_t) (i:nat) (block:block_w) : (va_quickCode unit (va_code_Loop_rounds_16_59_c i)) = (qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 727 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 2) (va_op_vec_opr_vec 7) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 728 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 10) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 3) (va_op_vec_opr_vec 8) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 729 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 11) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 4) (va_op_vec_opr_vec 9) block) (va_QSeq va_range1 "***** PRECONDITION NOT MET AT line 730 column 27 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_quick_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 12) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 5) (va_op_vec_opr_vec 10) block) (va_QEmpty (()))))))) [@"opaque_to_smt"] let va_lemma_Loop_rounds_16_59_c va_b0 va_s0 i block = let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok] in let va_qc = va_qcode_Loop_rounds_16_59_c va_mods i block in let (va_sM, va_fM, va_g) = va_wp_sound_code_norm (va_code_Loop_rounds_16_59_c i) va_qc va_s0 (fun va_s0 va_sM va_g -> let () = va_g in label va_range1 "***** POSTCONDITION NOT MET AT line 703 column 1 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (va_get_ok va_sM) /\ label va_range1 "***** POSTCONDITION NOT MET AT line 725 column 77 of file /home/gebner/everest/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.Core.vaf *****" (l_and (l_and (l_and ((va_get_vec 9 va_sM).hi3 == ws_opaque block (i + 1)) ((va_get_vec 10 va_sM).hi3 == ws_opaque block (i + 2))) ((va_get_vec 11 va_sM).hi3 == ws_opaque block (i + 3))) ((va_get_vec 12 va_sM).hi3 == ws_opaque block (i + 4)))) in assert_norm (va_qc.mods == va_mods); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9; va_Mod_ok]) va_sM va_s0; (va_sM, va_fM) [@"opaque_to_smt"] let va_wpProof_Loop_rounds_16_59_c i block va_s0 va_k = let (va_sM, va_f0) = va_lemma_Loop_rounds_16_59_c (va_code_Loop_rounds_16_59_c i) va_s0 i block in va_lemma_upd_update va_sM; assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 12 va_sM (va_update_vec 11 va_sM (va_update_vec 10 va_sM (va_update_vec 9 va_sM (va_update_ok va_sM va_s0)))))))); va_lemma_norm_mods ([va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9]) va_sM va_s0; let va_g = () in (va_sM, va_f0, va_g) //-- //-- Loop_rounds_16_59_d [@ "opaque_to_smt" va_qattr] let va_code_Loop_rounds_16_59_d i = (va_Block (va_CCons (va_code_Loop_rounds_16_63_body (i + 1) (va_op_vec_opr_vec 13) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 6) (va_op_vec_opr_vec 11)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 2) (va_op_vec_opr_vec 14) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 7) (va_op_vec_opr_vec 12)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 3) (va_op_vec_opr_vec 15) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 8) (va_op_vec_opr_vec 13)) (va_CCons (va_code_Loop_rounds_16_63_body (i + 4) (va_op_vec_opr_vec 0) (va_op_vec_opr_vec 1) (va_op_vec_opr_vec 9) (va_op_vec_opr_vec 14)) (va_CNil ())))))) [@ "opaque_to_smt" va_qattr]
false
true
Vale.SHA.PPC64LE.Rounds.Core.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": 2000, "z3rlimit_factor": 1, "z3seed": 0, "z3smtopt": [], "z3version": "4.8.5" }
null
val va_codegen_success_Loop_rounds_16_59_d : i:nat -> Tot va_pbool
[]
Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_d
{ "file_name": "obj/Vale.SHA.PPC64LE.Rounds.Core.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool
{ "end_col": 21, "end_line": 2068, "start_col": 2, "start_line": 2054 }